5.0.79 • Published 6 years ago

@fromage/cli-plugin-babel v5.0.79

Weekly downloads
46
License
MIT
Repository
github
Last release
6 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

6 years ago

5.0.75

6 years ago

5.0.74

6 years ago

5.0.70

6 years ago

5.0.69

6 years ago

5.0.65

6 years ago

5.0.64

6 years ago

5.0.62

6 years ago

5.0.56

6 years ago

5.0.48

6 years ago

5.0.47

6 years ago

5.0.46

6 years ago

5.0.45

6 years ago

5.0.44

6 years ago

5.0.43

6 years ago

5.0.42

6 years ago

5.0.41

6 years ago

5.0.40

6 years ago

5.0.39

6 years ago

5.0.37

6 years ago

5.0.35

6 years ago

5.0.34

6 years ago

5.0.32

6 years ago

5.0.31

6 years ago

5.0.30

6 years ago

5.0.29

6 years ago

5.0.24

6 years ago

5.0.23

6 years ago

5.0.22

6 years ago

5.0.21

6 years ago

5.0.20

6 years ago

5.0.18

6 years ago

5.0.17

6 years ago

5.0.16

6 years ago

5.0.15

6 years ago

5.0.14

6 years ago

5.0.13

6 years ago

5.0.12

6 years ago

5.0.11

6 years ago

5.0.10

6 years ago

5.0.9

6 years ago

5.0.8

6 years ago

5.0.7

6 years ago

5.0.5

6 years ago

5.0.1

6 years ago