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

7 years ago

5.0.47

7 years ago

5.0.46

7 years ago

5.0.45

7 years ago

5.0.44

7 years ago

5.0.43

7 years ago

5.0.42

7 years ago

5.0.41

7 years ago

5.0.40

7 years ago

5.0.39

7 years ago

5.0.37

7 years ago

5.0.35

7 years ago

5.0.34

7 years ago

5.0.32

7 years ago

5.0.31

7 years ago

5.0.30

7 years ago

5.0.29

7 years ago

5.0.24

7 years ago

5.0.23

7 years ago

5.0.22

7 years ago

5.0.21

7 years ago

5.0.20

7 years ago

5.0.18

7 years ago

5.0.17

7 years ago

5.0.16

7 years ago

5.0.15

7 years ago

5.0.14

7 years ago

5.0.13

7 years ago

5.0.12

7 years ago

5.0.11

7 years ago

5.0.10

7 years ago

5.0.9

7 years ago

5.0.8

7 years ago

5.0.7

7 years ago

5.0.5

7 years ago

5.0.1

7 years ago