Hi, I'm trying to load up a browserify --standalone bundle that includes webworkify that been minified with uglifyjs using the --mangle and --compress options in Require.js.
Problem
Require.js fails to load the bundle:

Reproducible example
See https://gist.github.com/etpinard/8ec2c29210d5adee049d54bb427bbbe6
Observations
This line seems to be causing the issue when compressed by uglifyjs
Replacing
'var f = require(' + stringify(wkey) + ');' +
'(f.default ? f.default : f)(self);'
by
'var f = require('+stringify(wkey)+');' +
'(f.default ? f.default : f)(self);'
and running browserify and uglifyjs without the --compress option is enough to replicate the problem listed above.
Hi, I'm trying to load up a browserify
--standalonebundle that includeswebworkifythat been minified withuglifyjsusing the--mangleand--compressoptions in Require.js.Problem
Require.js fails to load the bundle:
Reproducible example
See https://gist.github.com/etpinard/8ec2c29210d5adee049d54bb427bbbe6
Observations
This line seems to be causing the issue when compressed by
uglifyjsReplacing
by
and running browserify and uglifyjs without the
--compressoption is enough to replicate the problem listed above.