mirror of
https://gitee.com/vuejs/vue.git
synced 2024-11-29 18:47:39 +08:00
build: target es2017 / node 8 for cjs files
This commit is contained in:
parent
58608a2f26
commit
6f8fb220e2
@ -212,7 +212,9 @@ function genConfig(name) {
|
||||
cacheRoot: path.resolve(__dirname, '../', 'node_modules/.rts2_cache'),
|
||||
tsconfigOverride: {
|
||||
compilerOptions: {
|
||||
target: opts.transpile === false ? 'esnext' : 'es5'
|
||||
// if targeting browser, target es5
|
||||
// if targeting node, es2017 means Node 8
|
||||
target: opts.transpile === false ? 'es2017' : 'es5'
|
||||
},
|
||||
exclude: ['test', 'test-dts']
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user