Local modifications to ClusterLabs/Anvil by Alteeve
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

36 lines
696 B

const path = require('path');
module.exports = {
entry: './src/index.ts',
mode: 'production',
module: {
rules: [
{
exclude: /node_modules/,
test: /\.ts$/,
use: {
loader: 'babel-loader',
options: {
presets: [
['@babel/preset-env', { corejs: 3, useBuiltIns: 'usage' }],
'@babel/preset-typescript',
],
},
},
},
],
},
optimization: {
minimize: true,
},
output: {
clean: true,
filename: 'index.js',
path: path.resolve(__dirname, 'out'),
},
resolve: {
extensions: ['.js', '.ts'],
},
stats: 'detailed',
target: 'node10',
};