VueCLI:Plugins
Vue CLI uses a plugin-based architecture. If you inspect a newly created project's package.json, you will find dependencies that start with @vue/cli-plugin-
. Plugins can modify the internal webpack configuration and inject commands to vue-cli-service
. Most of the features listed during the project creation process are implemented as plugins.
@vue/cli-plugin-babel
@vue/cli-plugin-typescript
Uses TypeScript + ts-loader + fork-ts-checker-webpack-plugin
TypeScript can be configured via tsconfig.json.
Since 3.0.0-rc.6
, typescript
is now a peer dependency of this package, so you can use a specific version of TypeScript by updating your project's package.json.
This plugin can be used alongside @vue/cli-plugin-babel
. When used with Babel, this plugin will output ES2015 and delegate the rest to Babel for auto polyfill based on browser targets.