zhouzhongyuan / qa

Questions recods
MIT License
5 stars 1 forks source link

babel使用指南 #32

Closed zhouzhongyuan closed 7 years ago

zhouzhongyuan commented 7 years ago
zhouzhongyuan commented 7 years ago

Lookup behavior

Babel will look for a .babelrc in the current directory of the file being transpiled. If one does not exist, it will travel up the directory tree until it finds either a .babelrc, or a package.json with a "babel": {} hash within.

Use "babelrc": false in options to stop lookup behavior, or provide the --no-babelrc CLI flag.

zhouzhongyuan commented 6 years ago

shim vs polyfill

zhouzhongyuan commented 5 years ago