Giter Club home page Giter Club logo

Comments (12)

Hei-Ha avatar Hei-Ha commented on June 2, 2024 2

我按照你的方法,添加了插件,但是还是报错,错误相同,是不是此方法已经不适用于 babel 7了呢?

from blog.

luckymore avatar luckymore commented on June 2, 2024 2

add one line in .babelrc

{
  "sourceType": "script"
}

from blog.

ShaojieLiu avatar ShaojieLiu commented on June 2, 2024 1

I love you man, you saved my life !!!

from blog.

monkindey avatar monkindey commented on June 2, 2024

其实可以干掉 transform-es2015-modules-commonjs,用webpack2 自己的,可以支持ES6。
我是引用一些库,他是用caller,在use strict下面不能用,哎呀,他的代码还是混淆过的。
不知道为啥它要用这个逻辑。你确实也提供这个方法不错,不过最好的方法应该是从源头解决问题吧。

from blog.

kenberkeley avatar kenberkeley commented on June 2, 2024

I love you man, you saved my life !!!

from blog.

showonne avatar showonne commented on June 2, 2024

学习了。

from blog.

xialvjun avatar xialvjun commented on June 2, 2024

用 script-loader吧。。。

from blog.

PasserbyFluid avatar PasserbyFluid commented on June 2, 2024

I love you man, you saved my life !!!

from blog.

VeigarH5 avatar VeigarH5 commented on June 2, 2024

I love you man, you saved my life !!!

from blog.

carior avatar carior commented on June 2, 2024

I love you man, you saved my life !!!

from blog.

SamBian86 avatar SamBian86 commented on June 2, 2024

是的呢,最新的babel已经不能这么搞了

from blog.

cleverboy32 avatar cleverboy32 commented on June 2, 2024

那怎么办

from blog.

Related Issues (7)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.