44 lines
951 B
JavaScript
Raw Normal View History

2023-01-18 00:37:58 +04:00
// Generated using webpack-cli https://github.com/webpack/webpack-cli
const path = require('path');
const ReplacePlugin = require('webpack-plugin-replace');
const webpack = require('webpack');
2023-01-18 00:37:58 +04:00
2023-01-18 02:02:21 +04:00
// const mode = 'production';
const mode = 'development';
2023-01-18 00:37:58 +04:00
2023-01-18 02:02:21 +04:00
const config = {
2023-01-18 00:37:58 +04:00
mode: mode,
entry: './src/index.ts',
output: {
path: path.resolve('dist'),
},
module: {
rules: [
{
test: /\.(js|ts|tsx)$/i,
2023-01-18 02:02:21 +04:00
loader: 'ts-loader',
2023-01-18 00:37:58 +04:00
exclude: ['/node_modules/'],
},
],
},
resolve: {
extensions: ['.tsx', '.ts', '.js'],
fallback: {
buffer: require.resolve('buffer/'),
},
2023-01-18 00:37:58 +04:00
},
plugins: [
new ReplacePlugin({
values: {
__marine__: '__marine__10',
__avm__: '__avm__10',
2023-01-18 00:37:58 +04:00
},
}),
],
2023-01-18 02:02:21 +04:00
};
2023-01-18 00:37:58 +04:00
module.exports = () => {
2023-01-18 02:02:21 +04:00
return config;
2023-01-18 00:37:58 +04:00
};