diff options
| author | Caleb Mabry <36182383+caleb-mabry@users.noreply.github.com> | 2022-03-23 15:31:04 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-03-23 15:31:04 -0400 |
| commit | 46d63b5ba4eeb30ac1f5add49b03b1aed8ae0328 (patch) | |
| tree | 228ef1f017ce0320f3d210a557d2803a03ec73e1 /webpack.config.js | |
| parent | 0b6b4b085cee48248fe2025a2514252ee20ee774 (diff) | |
| parent | 2e734ec14fc760f80e2a9dc81cdf9269220bb791 (diff) | |
Merge branch 'master' into moving-audio-channels
Diffstat (limited to 'webpack.config.js')
| -rw-r--r-- | webpack.config.js | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/webpack.config.js b/webpack.config.js index aa52deb..edfe0a4 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -15,14 +15,17 @@ module.exports = { entry: { ui: './webAO/ui.js', client: './webAO/client.js', - master: './webAO/master.js', + master: './webAO/master.ts', dom: glob.sync('./webAO/dom/*.js'), - components: glob.sync('./webAO/components/*.js') + components: glob.sync('./webAO/components/*.js'), }, node: { global: true, }, devtool: 'source-map', + resolve: { + extensions: ["", ".webpack.js", ".web.js", ".ts", ".tsx", ".js"], + }, devServer: { static: { directory: path.join(__dirname, 'webAO'), @@ -56,6 +59,9 @@ module.exports = { }, }, }, + { test: /\.tsx?$/, loader: "ts-loader" }, + // All output '.js' files will have any sourcemaps re-processed by 'source-map-loader'. + { test: /\.js$/, loader: "source-map-loader" }, ], }, output: { |
