@vue/cli-plugin-typescript

5.0.8 • Public • Published

@vue/cli-plugin-typescript

typescript plugin for vue-cli

Uses TypeScript + ts-loader + fork-ts-checker-webpack-plugin for faster off-thread type checking.

Configuration

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.

Caching

cache-loader is enabled by default and cache is stored in <projectRoot>/node_modules/.cache/ts-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 Typescript in combination with non-serializable loader options, such as regexes, dates and functions. These options would not be passed correctly to ts-loader which may lead to unexpected errors.

Installing in an Already Created Project

vue add typescript

Injected webpack-chain Rules

  • config.rule('ts')
  • config.rule('ts').use('ts-loader')
  • config.rule('ts').use('babel-loader') (when used alongside @vue/cli-plugin-babel)
  • config.rule('ts').use('cache-loader')
  • config.plugin('fork-ts-checker')

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
5.0.8127,534latest
5.0.6760next

Version History

VersionDownloads (Last 7 Days)Published
5.0.8127,534
5.0.793
4.5.1920,788
5.0.6760
4.5.18450
5.0.54
4.5.171,994
5.0.415,138
4.5.16223
5.0.3316
5.0.20
5.0.1510
5.0.052
5.0.0-rc.38
5.0.0-rc.2128
5.0.0-rc.139
5.0.0-rc.010
4.5.153,631
5.0.0-beta.73
4.5.14245
5.0.0-beta.60
5.0.0-beta.50
5.0.0-beta.41
5.0.0-beta.356
5.0.0-beta.2767
5.0.0-beta.18
4.5.134,596
5.0.0-beta.015
5.0.0-alpha.80
4.5.121,255
5.0.0-alpha.71
5.0.0-alpha.60
5.0.0-alpha.50
5.0.0-alpha.40
4.5.112,525
5.0.0-alpha.30
5.0.0-alpha.20
5.0.0-alpha.10
4.5.10629
5.0.0-alpha.02
4.5.93,318
4.5.82,011
4.5.7220
4.5.6282
4.5.50
4.5.4297
4.5.3503
4.5.22
4.5.114
4.5.088
4.4.61,535
4.4.53
4.4.4570
4.4.314
4.4.21
4.4.185
4.4.020
4.3.12,219
4.3.0151
4.2.31,858
4.2.2121
4.2.10
4.2.01
4.1.2934
4.1.1132
4.1.056
4.1.0-beta.00
4.0.5329
3.12.13,260
4.0.420
4.0.311
4.0.20
4.0.00
4.0.0-rc.81
3.12.013
4.0.0-rc.70
4.0.0-rc.61
4.0.0-rc.50
4.0.0-rc.40
4.0.0-rc.30
4.0.0-rc.217
4.0.0-rc.10
3.11.0309
4.0.0-rc.00
4.0.0-beta.31
3.10.023
4.0.0-beta.21
4.0.0-beta.11
4.0.0-beta.00
4.0.0-alpha.50
4.0.0-alpha.419
4.0.0-alpha.30
3.9.0205
4.0.0-alpha.21
3.8.1152
3.8.04
4.0.0-alpha.112
4.0.0-alpha.00
3.7.0169
3.6.091
3.5.3317
3.5.20
3.5.141
3.5.01
3.4.1208
3.4.067
3.3.029
3.2.2283
3.2.032
3.1.1162
3.1.00
3.0.59
3.0.465
3.0.319
3.0.20
3.0.11
3.0.00
3.0.0-rc.120
3.0.0-rc.110
3.0.0-rc.100
3.0.0-rc.91
3.0.0-rc.80
3.0.0-rc.70
3.0.0-rc.61
3.0.0-rc.51
3.0.0-rc.41
3.0.0-rc.31
3.0.0-rc.21
3.0.0-rc.10
3.0.0-beta.160
3.0.0-beta.150
3.0.0-beta.141
3.0.0-beta.130
3.0.0-beta.120
3.0.0-beta.110
3.0.0-beta.100
3.0.0-beta.90
3.0.0-beta.80
3.0.0-beta.70
3.0.0-beta.61
3.0.0-beta.50
3.0.0-beta.40
3.0.0-beta.31
3.0.0-beta.20
3.0.0-beta.11
3.0.0-alpha.130
3.0.0-alpha.121
3.0.0-alpha.110
3.0.0-alpha.101
3.0.0-alpha.90
3.0.0-alpha.80
3.0.0-alpha.71
3.0.0-alpha.60
3.0.0-alpha.50
3.0.0-alpha.40
3.0.0-alpha.30
3.0.0-alpha.20
3.0.0-alpha.10

Package Sidebar

Install

npm i @vue/cli-plugin-typescript

Weekly Downloads

202,103

Version

5.0.8

License

MIT

Unpacked Size

21.4 kB

Total Files

22

Last publish

Collaborators

  • akryum
  • yyx990803
  • soda