SelfDefending works when building in production mode
KaminoRyo opened this issue · 1 comments
KaminoRyo commented
obfuscator-loader : newest version (I'm pulling from Github instead of npm)
I set Obfuscator-loader to come last as instructed, but I was confused by the selfDefending feature working.😥
(Error : Maximum call stack size exceeded)
I don't use plugin. program works when built in development mode.
webpack.config.js
{
test: /\.ts$/,
use: [
{
loader: 'obfuscator-loader',
options: (official "Low obfuscation, High performance" setting)
},
{
loader: "babel-loader",
options: {
presets: [
[
"@babel/preset-env",
{
"targets": { "ie": "11" }
}
]
]
}
},
{
loader: 'ts-loader',
options: { transpileOnly: true }
}
],
exclude: /node_modules/
}
sanex3339 commented
Hi. Use loader bundled to the webpack-obfuscator
https://github.com/javascript-obfuscator/webpack-obfuscator#loader-usage
If this problem still will happen - create new issue there.