[BUG] Webpack 5 Development Mode
See original GitHub issueExpected Behavior
Webpack development
mode do not break any obfuscated code.
Current Behavior
Currently, webpack destroy obfuscated code by webpack obfuscator plugin if you set mode to development
.
Steps to Reproduce
- Use webpack obfuscator plugin with high presset (I set 90% obfuscated functions to true and 1.0 of 1.0)
- Set mode to
development
insidewebpack.config.js
- Build bundle
- Try run it and get error
Your Environment
- Obfuscator version used: latest (3.4.1 or something)
- Node version used: 14.16.1
Stack trace
Minimal working example that will help to reproduce issue
function hi() {
console.log("hi!");
}
hi();
Issue Analytics
- State:
- Created 2 years ago
- Comments:9 (9 by maintainers)
Top Results From Across the Web
Mode | webpack
NODE_ENV on DefinePlugin to value development . Enables useful names for modules and chunks. production, Sets process.env.NODE_ENV on DefinePlugin ...
Read more >Watching symlinks doesn't work in dev mode #15100 - GitHub
Watching symlinks doesn't work after multiple changes in development mode. If the current behavior is a bug, please provide the steps to ...
Read more >Solution for Webpack 5 Dev Server Not Live Reloading
There is currently a bug with Webpack 5 and webpack- dev -server not working that is caused by the existence of a browserslist...
Read more >How I solved and debugged my Webpack issue through trial ...
Change 5: Let's try to remove the WebpackMd5Hash hashing plugin now: ... module.exports = {mode: 'development' ...
Read more >An error happens in webpack production mode, but but works ...
Today I find the reason , I used webpack-deep-scope-plugin for tree shaking ,because of optimization.usedExports is enabled in production ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Can’t reproduce. Can you provide a repo with example?
@sanex3339 could that be a one more bug?
I suppose what global
exports
was broken in some case also with webpack and development mode. I can’t share source code, currently, but I try find a small codeexample for reproduce bug.