This commit is contained in:
2025-07-09 13:26:51 +01:00
commit d564cf2cd1
24 changed files with 19728 additions and 0 deletions

26
src_bundle/index.mjs Normal file
View File

@@ -0,0 +1,26 @@
import wp from 'webpack';
import path from 'node:path'
const outputPath = path.resolve('./output/');
console.log(outputPath);
const compiler = wp({
entry:'./test_src/arithmetic.cjs',
mode: 'production',
optimization:{
mangleExports: false,
avoidEntryIife: true,
minimize: false
},
output: {
path: outputPath,
filename: 'lodash.bundle.js',
scriptType: 'module',
}
,
},(err,stats)=>{
if (err || stats.hasErrors()) {
console.log(stats.hasErrors())
console.log(err?.stack)
console.log(stats.toJson());
}
})