Getting HEAPU32 not defined
djaffer opened this issue · 1 comments
djaffer commented
djaffer commented
I am using react. I got it to work by separating out node modules. The documentation can have these configs as this is such a common issue. The documentation needs improvement as it is challenging to use this plugin.
Credit to @mauricedoepke #50
config.optimization.splitChunks = {
cacheGroups: {
vendor: {
test: /node_modules/,
chunks: 'initial',
name: 'vendor',
enforce: true,
},
},
new WebpackObfuscator(
{
rotateStringArray: true,
},
['**/vendor.*.chunk.js'] // pattern for the vendor chunk file generated where * is the hash
)
);
```