1. babel5
babel: { options: { blacklist: ["useStrict"], // ... }, // ... }
2. babel6
修改.babelrc
略過模塊:
{ presets: [ ["es2015", { "modules": false }] ] }
略過某個文件:
{ "presets": ["es2015"], "ignore": [ "./src/js/directive/datePicker.js" ] }
3. babel-plugin-transform-remove-strict-mode
加裝這個外掛: https://www.npmjs.com/package...
其他參考:
http://stackoverflow.com/ques...