diff --git a/webpack.config.js b/webpack.config.js new file mode 100644 index 00000000..831ab2eb --- /dev/null +++ b/webpack.config.js @@ -0,0 +1,35 @@ +const path = require('path'); + +module.exports = { + resolve: { + extensions: [".ts", ".tsx"] + }, + entry: { + //inheritPoint: './hwe/ts/inheritPoint.ts', + }, + output: { + filename: '[name].js', + path: path.resolve(__dirname, 'hwe/js'), + }, + mode: 'production', + devtool: 'source-map', + module: { + rules: [{ + test: /\.(ts|tsx)$/, + exclude: /(node_modules)/, + use: { + loader: 'babel-loader', + options: { + presets: [ + '@babel/preset-env', + '@babel/preset-typescript' + ], + plugins: [ + '@babel/proposal-class-properties', + '@babel/proposal-object-rest-spread' + ] + } + } + }] + }, +} \ No newline at end of file