5.0.79 • Published 5 years ago

@fromage/cli-plugin-babel v5.0.79

Weekly downloads
46
License
MIT
Repository
github
Last release
5 years ago

@fromage/cli-plugin-babel

babel plugin for vue-cli

Configuration

Uses Babel 7 + babel-loader + @fromage/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 @fromage/babel

Injected webpack-chain Rules

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

5 years ago

5.0.75

5 years ago

5.0.74

5 years ago

5.0.70

5 years ago

5.0.69

5 years ago

5.0.65

5 years ago

5.0.64

5 years ago

5.0.62

5 years ago

5.0.56

5 years ago

5.0.48

5 years ago

5.0.47

5 years ago

5.0.46

5 years ago

5.0.45

5 years ago

5.0.44

5 years ago

5.0.43

5 years ago

5.0.42

5 years ago

5.0.41

5 years ago

5.0.40

5 years ago

5.0.39

5 years ago

5.0.37

5 years ago

5.0.35

5 years ago

5.0.34

5 years ago

5.0.32

5 years ago

5.0.31

5 years ago

5.0.30

5 years ago

5.0.29

5 years ago

5.0.24

5 years ago

5.0.23

5 years ago

5.0.22

5 years ago

5.0.21

5 years ago

5.0.20

5 years ago

5.0.18

5 years ago

5.0.17

5 years ago

5.0.16

5 years ago

5.0.15

5 years ago

5.0.14

5 years ago

5.0.13

5 years ago

5.0.12

5 years ago

5.0.11

5 years ago

5.0.10

5 years ago

5.0.9

5 years ago

5.0.8

5 years ago

5.0.7

5 years ago

5.0.5

5 years ago

5.0.1

5 years ago