2023-09-09 15:49:53 +00:00
|
|
|
const path = require('path');
|
|
|
|
|
|
|
|
module.exports = [
|
|
|
|
{
|
|
|
|
mode:'production',
|
|
|
|
entry: './src/index.ts',
|
|
|
|
target: 'web',
|
|
|
|
output: {
|
2023-09-21 06:40:39 +00:00
|
|
|
filename: 'bundle.min.js',
|
2023-09-21 16:53:34 +00:00
|
|
|
path: path.resolve(__dirname, 'umd'),
|
2023-09-09 15:49:53 +00:00
|
|
|
library: 'dataStructureTyped',
|
2023-09-21 16:53:34 +00:00
|
|
|
libraryTarget: 'umd',
|
2023-09-09 15:49:53 +00:00
|
|
|
},
|
|
|
|
resolve: {
|
|
|
|
extensions: ['.ts', '.js'],
|
|
|
|
},
|
|
|
|
module: {
|
|
|
|
rules: [
|
|
|
|
{
|
|
|
|
test: /\.ts$/,
|
|
|
|
use: 'ts-loader',
|
|
|
|
exclude: /node_modules/,
|
|
|
|
}
|
|
|
|
],
|
|
|
|
},
|
2023-09-21 06:40:39 +00:00
|
|
|
devtool: 'source-map',
|
2023-09-09 15:49:53 +00:00
|
|
|
},
|
|
|
|
];
|