Skip to content

soulcm/webpack4-usage

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

webpack 4.0 && babel-preset-env

参考webpack4.0

参考babel-env

其中useBuiltIns若为true,需要配合"babel-polyfill"一起使用,在入口文件中import 'babel-polyfill' 将会根据env的browserslist配置,自动添加所有需要的polyfill

env默认不会转换built-ins的代码,如Object.assign, Promise等,参考core-js以及regenerator

若需转换这部分代码时,可加入babel-plugin-transform-runtime

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors