Comments (12)
我按照你的方法,添加了插件,但是还是报错,错误相同,是不是此方法已经不适用于 babel 7了呢?
from blog.
add one line in .babelrc
{
"sourceType": "script"
}
from blog.
I love you man, you saved my life !!!
from blog.
其实可以干掉 transform-es2015-modules-commonjs
,用webpack2
自己的,可以支持ES6。
我是引用一些库,他是用caller
,在use strict
下面不能用,哎呀,他的代码还是混淆过的。
不知道为啥它要用这个逻辑。你确实也提供这个方法不错,不过最好的方法应该是从源头解决问题吧。
from blog.
I love you man, you saved my life !!!
from blog.
学习了。
from blog.
用 script-loader吧。。。
from blog.
I love you man, you saved my life !!!
from blog.
I love you man, you saved my life !!!
from blog.
I love you man, you saved my life !!!
from blog.
是的呢,最新的babel已经不能这么搞了
from blog.
那怎么办
from blog.
Related Issues (7)
- reselect源码分析和最佳实践思考
- 搜狗商业前端工程化蜕变之路 HOT 6
- 无意识设计-复盘React Hook的创造过程 HOT 12
- 架构一个复杂前端系统需要关注哪些点 HOT 2
- 开发一个高质量的前端组件,这些姿势一定要知道 HOT 3
- 研发工程化新玩法:云+WebIDE HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from blog.