mirror of
https://github.com/zrwusa/data-structure-typed.git
synced 2024-11-10 08:04:05 +00:00
28 lines
633 B
JavaScript
28 lines
633 B
JavaScript
const path = require('path');
|
|
|
|
module.exports = [
|
|
{
|
|
mode:'production',
|
|
entry: './src/index.ts',
|
|
target: 'web',
|
|
output: {
|
|
filename: 'bundle.js',
|
|
path: path.resolve(__dirname, 'dist'),
|
|
library: 'dataStructureTyped',
|
|
libraryTarget: 'window',
|
|
},
|
|
resolve: {
|
|
extensions: ['.ts', '.js'],
|
|
},
|
|
module: {
|
|
rules: [
|
|
{
|
|
test: /\.ts$/,
|
|
use: 'ts-loader',
|
|
exclude: /node_modules/,
|
|
}
|
|
],
|
|
},
|
|
},
|
|
];
|