question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[BUG] Webpack 5 Development Mode

See original GitHub issue

Expected 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

  1. Use webpack obfuscator plugin with high presset (I set 90% obfuscated functions to true and 1.0 of 1.0)
  2. Set mode to development inside webpack.config.js
  3. Build bundle
  4. 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

image

Minimal working example that will help to reproduce issue

function hi() {
    console.log("hi!");
}

hi();

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:9 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
sanex3339commented, Feb 10, 2022

Can’t reproduce. Can you provide a repo with example?

0reactions
BlackYuziacommented, Feb 15, 2022

@sanex3339 could that be a one more bug? image

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found