diff options
Diffstat (limited to 'webpack.config.js')
-rw-r--r-- | webpack.config.js | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/webpack.config.js b/webpack.config.js index 80703c7448..fa24354a5b 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -76,26 +76,26 @@ export default { mode: isProduction ? 'production' : 'development', entry: { index: [ - fileURLToPath(new URL('web_src/js/globals.js', import.meta.url)), + fileURLToPath(new URL('web_src/js/globals.ts', import.meta.url)), fileURLToPath(new URL('web_src/fomantic/build/semantic.js', import.meta.url)), - fileURLToPath(new URL('web_src/js/index.js', import.meta.url)), + fileURLToPath(new URL('web_src/js/index.ts', import.meta.url)), fileURLToPath(new URL('node_modules/easymde/dist/easymde.min.css', import.meta.url)), fileURLToPath(new URL('web_src/fomantic/build/semantic.css', import.meta.url)), fileURLToPath(new URL('web_src/css/index.css', import.meta.url)), ], webcomponents: [ - fileURLToPath(new URL('web_src/js/webcomponents/index.js', import.meta.url)), + fileURLToPath(new URL('web_src/js/webcomponents/index.ts', import.meta.url)), ], swagger: [ - fileURLToPath(new URL('web_src/js/standalone/swagger.js', import.meta.url)), + fileURLToPath(new URL('web_src/js/standalone/swagger.ts', import.meta.url)), fileURLToPath(new URL('web_src/css/standalone/swagger.css', import.meta.url)), ], 'eventsource.sharedworker': [ - fileURLToPath(new URL('web_src/js/features/eventsource.sharedworker.js', import.meta.url)), + fileURLToPath(new URL('web_src/js/features/eventsource.sharedworker.ts', import.meta.url)), ], ...(!isProduction && { devtest: [ - fileURLToPath(new URL('web_src/js/standalone/devtest.js', import.meta.url)), + fileURLToPath(new URL('web_src/js/standalone/devtest.ts', import.meta.url)), fileURLToPath(new URL('web_src/css/standalone/devtest.css', import.meta.url)), ], }), @@ -140,13 +140,13 @@ export default { }, }, { - test: /\.js$/i, + test: /\.ts$/i, exclude: /node_modules/, use: [ { loader: 'esbuild-loader', options: { - loader: 'js', + loader: 'ts', target: 'es2020', }, }, |