diff options
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: { |
