Created
July 3, 2020 10:36
-
-
Save dxc04/746e705f45c540bda1f47f2c69b5653a to your computer and use it in GitHub Desktop.
Vue Cli Plugin Configuration for ts-loader
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module.exports = { | |
configureWebpack: { | |
module: { | |
rules: [ | |
{ | |
test: /\.ts$/, | |
exclude: /node_modules/, | |
include: /src/, | |
loader: "ts-loader", | |
options: { | |
transpileOnly: true, | |
appendTsSuffixTo: [/\.vue$/] | |
} | |
} | |
] | |
} | |
}, | |
chainWebpack: config => { | |
config.module.rule("ts").uses.delete("thread-loader"); | |
} | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment