diff options
author | devlinjunker <devlin.junker@gmail.com> | 2022-07-04 01:07:48 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-07-04 10:07:48 +0200 |
commit | f1668df03fa137ff809f26b6dd5b52707d6009f1 (patch) | |
tree | fc935a40c067c2c3146b00d2073604413774d1c4 /webpack.js | |
parent | 40d9c352aba5351c7a55a63e5bc0508141f51224 (diff) |
[Vue Rewrite] Enable Typescript Vue Components (#1831)
* compiling typescript with webpack
Signed-off-by: Devlin Junker <devlin.junker@gmail.com>
* working typescript component
Signed-off-by: Devlin Junker <devlin.junker@gmail.com>
* clean up indentation and linting
Signed-off-by: Devlin Junker <devlin.junker@gmail.com>
* remove calendar-js
Signed-off-by: Devlin Junker <devlin.junker@gmail.com>
* revert indentation and remove commented out lines
Signed-off-by: Devlin Junker <devlin.junker@gmail.com>
* clean up warning
Signed-off-by: Devlin Junker <devlin.junker@gmail.com>
* cleanup + add comments
Signed-off-by: Devlin Junker <devlin.junker@gmail.com>
* fix warnings and add more comments
Signed-off-by: Devlin Junker <devlin.junker@gmail.com>
* cleanup unecessary changes to webpack and add comments
Signed-off-by: Devlin Junker <devlin.junker@gmail.com>
* fix package
Signed-off-by: Devlin Junker <devlin.junker@gmail.com>
* update changelog and fix comment
Signed-off-by: Devlin Junker <devlin.junker@gmail.com>
* cleanup
Signed-off-by: Devlin Junker <devlin.junker@gmail.com>
* remove unecessary line
Signed-off-by: Devlin Junker <devlin.junker@gmail.com>
* remove vue-class-component library + others
Signed-off-by: Devlin Junker <devlin.junker@gmail.com>
* clean up babel-loader
Signed-off-by: Devlin Junker <devlin.junker@gmail.com>
* remove fork-ts-checker plugin
Signed-off-by: Devlin Junker <devlin.junker@gmail.com>
Diffstat (limited to 'webpack.js')
-rw-r--r-- | webpack.js | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/webpack.js b/webpack.js index e5daa927a..73904ad79 100644 --- a/webpack.js +++ b/webpack.js @@ -1,3 +1,20 @@ const webpackConfig = require('@nextcloud/webpack-vue-config') +// Add TS Loader for processing typescript in vue templates +webpackConfig.module.rules.push({ + test: /.ts$/, + exclude: [/node_modules/], + use: [ + { + loader: 'ts-loader', + options: { + transpileOnly: true, + appendTsSuffixTo: [ + '\\.vue$', + ], + }, + }, + ], +}) + module.exports = webpackConfig |