File tree Expand file tree Collapse file tree 1 file changed +25
-0
lines changed Expand file tree Collapse file tree 1 file changed +25
-0
lines changed Original file line number Diff line number Diff line change @@ -26,6 +26,31 @@ Note that you have to include `strict: true` (or at least `noImplicitThis: true`
26
26
27
27
See [ TypeScript compiler options docs] ( https://www.typescriptlang.org/docs/handbook/compiler-options.html ) for more details.
28
28
29
+ ## Webpack Configuration
30
+
31
+ If you are using a custom Webpack configuration ` ts-loader ` needs to be configured to parse ` <script lang="ts"> ` blocks in ` .vue ` files:
32
+
33
+ ``` js{10}
34
+ // webpack.config.js
35
+ module.exports = {
36
+ ...
37
+ module: {
38
+ rules: [
39
+ {
40
+ test: /\.tsx?$/,
41
+ loader: 'ts-loader',
42
+ options: {
43
+ appendTsSuffixTo: [/\.vue$/],
44
+ },
45
+ exclude: /node_modules/,
46
+ },
47
+ {
48
+ test: /\.vue$/,
49
+ loader: 'vue-loader',
50
+ }
51
+ ...
52
+ ```
53
+
29
54
## Development Tooling
30
55
31
56
### Project Creation
You can’t perform that action at this time.
0 commit comments