@vue/cli-plugin-babel
babel plugin for vue-cli
Last updated 12 days ago by soda .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @vue/cli-plugin-babel 
SYNC missed versions from official npm registry.

@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.

parallel should be set to false when using Babel in combination with non-serializable loader options, such as regexes, dates and functions. These options would not be passed correctly to babel-loader which may lead to unexpected errors.

Installing in an Already Created Project

vue add babel

Injected webpack-chain Rules

  • config.rule('js')
  • config.rule('js').use('babel-loader')
  • config.rule('js').use('cache-loader')

Current Tags

  • 4.5.6                                ...           latest (12 days ago)
  • 4.5.4                                ...           next (a month ago)

116 Versions

  • 4.5.6                                ...           12 days ago
  • 4.5.5                                ...           12 days ago
  • 4.5.4                                ...           a month ago
  • 4.5.3                                ...           a month ago
  • 4.5.2                                ...           a month ago
  • 4.5.1                                ...           2 months ago
  • 4.5.0                                ...           2 months ago
  • 4.4.6                                ...           3 months ago
  • 4.4.5                                ...           3 months ago
  • 4.4.4                                ...           3 months ago
  • 4.4.3                                ...           3 months ago
  • 4.4.2                                ...           3 months ago
  • 4.4.1                                ...           4 months ago
  • 4.4.0                                ...           4 months ago
  • 4.3.1                                ...           5 months ago
  • 4.3.0                                ...           6 months ago
  • 4.2.3                                ...           7 months ago
  • 4.2.2                                ...           7 months ago
  • 4.2.1                                ...           7 months ago
  • 4.2.0                                ...           7 months ago
  • 4.1.2                                ...           9 months ago
  • 4.1.1                                ...           10 months ago
  • 4.1.0                                ...           10 months ago
  • 4.1.0-beta.0                                ...           10 months ago
  • 4.0.5                                ...           a year ago
  • 3.12.1                                ...           a year ago
  • 4.0.4                                ...           a year ago
  • 4.0.3                                ...           a year ago
  • 4.0.2                                ...           a year ago
  • 4.0.0                                ...           a year ago
  • 4.0.0-rc.8                                ...           a year ago
  • 3.12.0                                ...           a year ago
  • 4.0.0-rc.7                                ...           a year ago
  • 4.0.0-rc.6                                ...           a year ago
  • 4.0.0-rc.5                                ...           a year ago
  • 4.0.0-rc.4                                ...           a year ago
  • 4.0.0-rc.3                                ...           a year ago
  • 4.0.0-rc.2                                ...           a year ago
  • 4.0.0-rc.1                                ...           a year ago
  • 3.11.0                                ...           a year ago
  • 4.0.0-rc.0                                ...           a year ago
  • 4.0.0-beta.3                                ...           a year ago
  • 3.10.0                                ...           a year ago
  • 4.0.0-beta.2                                ...           a year ago
  • 4.0.0-beta.1                                ...           a year ago
  • 4.0.0-beta.0                                ...           a year ago
  • 4.0.0-alpha.5                                ...           a year ago
  • 4.0.0-alpha.4                                ...           a year ago
  • 3.9.2                                ...           a year ago
  • 4.0.0-alpha.3                                ...           a year ago
  • 3.9.0                                ...           a year ago
  • 4.0.0-alpha.2                                ...           a year ago
  • 3.8.0                                ...           a year ago
  • 4.0.0-alpha.1                                ...           a year ago
  • 4.0.0-alpha.0                                ...           a year ago
  • 3.7.0                                ...           a year ago
  • 3.6.0                                ...           a year ago
  • 3.5.5                                ...           a year ago
  • 3.5.4                                ...           a year ago
  • 3.5.3                                ...           a year ago
  • 3.5.1                                ...           2 years ago
  • 3.5.0                                ...           2 years ago
  • 3.4.1                                ...           2 years ago
  • 3.4.0                                ...           2 years ago
  • 3.3.0                                ...           2 years ago
  • 3.2.2                                ...           2 years ago
  • 3.2.0                                ...           2 years ago
  • 3.1.1                                ...           2 years ago
  • 3.1.0                                ...           2 years ago
  • 3.0.5                                ...           2 years ago
  • 3.0.4                                ...           2 years ago
  • 3.0.3                                ...           2 years ago
  • 3.0.2                                ...           2 years ago
  • 3.0.1                                ...           2 years ago
  • 3.0.0                                ...           2 years ago
  • 3.0.0-rc.12                                ...           2 years ago
  • 3.0.0-rc.11                                ...           2 years ago
  • 3.0.0-rc.10                                ...           2 years ago
  • 3.0.0-rc.9                                ...           2 years ago
  • 3.0.0-rc.8                                ...           2 years ago
  • 3.0.0-rc.7                                ...           2 years ago
  • 3.0.0-rc.6                                ...           2 years ago
  • 3.0.0-rc.5                                ...           2 years ago
  • 3.0.0-rc.4                                ...           2 years ago
  • 3.0.0-rc.3                                ...           2 years ago
  • 3.0.0-rc.2                                ...           2 years ago
  • 3.0.0-rc.1                                ...           2 years ago
  • 3.0.0-beta.16                                ...           2 years ago
  • 3.0.0-beta.15                                ...           2 years ago
  • 3.0.0-beta.14                                ...           2 years ago
  • 3.0.0-beta.13                                ...           2 years ago
  • 3.0.0-beta.12                                ...           2 years ago
  • 3.0.0-beta.11                                ...           2 years ago
  • 3.0.0-beta.10                                ...           2 years ago
  • 3.0.0-beta.9                                ...           2 years ago
  • 3.0.0-beta.8                                ...           2 years ago
  • 3.0.0-beta.7                                ...           2 years ago
  • 3.0.0-beta.6                                ...           3 years ago
  • 3.0.0-beta.5                                ...           3 years ago
  • 3.0.0-beta.4                                ...           3 years ago
  • 3.0.0-beta.3                                ...           3 years ago
  • 3.0.0-beta.2                                ...           3 years ago
  • 3.0.0-beta.1                                ...           3 years ago
  • 3.0.0-alpha.13                                ...           3 years ago
  • 3.0.0-alpha.12                                ...           3 years ago
  • 3.0.0-alpha.11                                ...           3 years ago
  • 3.0.0-alpha.10                                ...           3 years ago
  • 3.0.0-alpha.9                                ...           3 years ago
  • 3.0.0-alpha.8                                ...           3 years ago
  • 3.0.0-alpha.7                                ...           3 years ago
  • 3.0.0-alpha.6                                ...           3 years ago
  • 3.0.0-alpha.5                                ...           3 years ago
  • 3.0.0-alpha.4                                ...           3 years ago
  • 3.0.0-alpha.3                                ...           3 years ago
  • 3.0.0-alpha.2                                ...           3 years ago
  • 3.0.0-alpha.1                                ...           3 years ago
Maintainers (1)
Downloads
Today 11,323
This Week 35,347
This Month 392,286
Last Day 24,024
Last Week 131,071
Last Month 528,169
Dependencies (7)
Dev Dependencies (1)
Dependents (134)

Copyright 2014 - 2016 © taobao.org |