webpack babel setting
install babel
- @babel/core : Babel compiler core.
- @babel/plugin-syntax-dynamic-import : Allow parsing of import()
- @babel/polyfill : This will emulate a full ES2015+ environment (no < Stage 4 proposals) and is intended to be used in an application rather than a library/tool.
- @babel/preset-env : allows you to use the latest JavaScript without needing to micromanage which syntax transforms
- babel-loader : allows transpiling JavaScript files using Babel and webpack.
create babellc file
set webpack module
Last Updated: 8/26/2019, 2:19:07 PM