@phenixs/cli-plugin-babel
@vue/cli-plugin-babel
babel plugin for vue-cli
Configuration
Uses Babel 7 + babel-loader + @vue/babel-preset-app by default, but can be configured via babel.config.js to use any other Babel presets or plugins.
By default, babel-loader excludes files inside node_modules dependencies. If you wish to explicitly transpile a dependency module, you will need to add it to the transpileDependencies option in vue.config.js:
module.exports = {
transpileDependencies: [
// can be string or regex
'my-dep',
/other-dep/
]
}
Caching
cache-loader is enabled by default and cache is stored in <projectRoot>/node_modules/.cache/babel-loader.
Parallelization
thread-loader is enabled by default when the machine has more than 1 CPU cores. This can be turned off by setting parallel: false in vue.config.js.
Installing in an Already Created Project
vue add @vue/babel
Injected webpack-chain Rules
config.rule('js')config.rule('js').use('babel-loader')config.rule('js').use('cache-loader')
Related Packages
Version History
| Version | Released | License |
|---|---|---|
| 0.0.71 | MIT | |
| 0.0.70 | MIT | |
| 0.0.69 | MIT | |
| 0.0.68 | MIT | |
| 0.0.67 | MIT | |
| 0.0.66 | MIT | |
| 0.0.65 | MIT | |
| 0.0.64 | MIT | |
| 0.0.63 | MIT | |
| 0.0.62 | MIT | |
| 0.0.60 | MIT | |
| 0.0.59 | MIT | |
| 0.0.58 | MIT | |
| 0.0.57 | MIT | |
| 0.0.56 | MIT | |
| 0.0.55 | MIT | |
| 0.0.54 | MIT | |
| 0.0.53 | MIT | |
| 0.0.52 | MIT | |
| 0.0.51 | MIT | |
| 0.0.50 | MIT | |
| 0.0.49 | MIT | |
| 0.0.48 | MIT | |
| 0.0.47 | MIT | |
| 0.0.46 | MIT | |
| 0.0.45 | MIT | |
| 0.0.44 | MIT | |
| 0.0.43 | MIT | |
| 0.0.42 | MIT | |
| 0.0.41 | MIT |
Showing the latest 30 of 43. See every release on npm