bundling refactor

This commit is contained in:
Jan Prochazka
2024-11-15 11:49:25 +01:00
parent 51ce4f1bb5
commit 7392b223f4
22 changed files with 164 additions and 90 deletions

View File

@@ -1,6 +1,10 @@
var webpack = require('webpack');
var path = require('path');
const packageJson = require('./package.json');
const buildPluginExternals = require('../../common/buildPluginExternals');
const externals = buildPluginExternals(packageJson);
var config = {
context: __dirname + '/src/backend',
@@ -18,9 +22,7 @@ var config = {
// optimization: {
// minimize: false,
// },
externals: {
'node-xml-stream-parser': 'commonjs node-xml-stream-parser',
},
externals,
};
module.exports = config;