-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
10.2.4 bug: b.require and --standalone #1305
Comments
current workaround
|
Can you provide a repro case? |
np! here it is:
With 10.2.4, window.app = B, and with 10.2.3, window.app = A |
sorry @mattfysh for the delay. this actually changed from 8.1.3 to 9.0.0 (#1077). I'm tempted to call this a bug, @jmm you made that change, what do you think? For context, this happens because the module that is exposed by standalone is the last entry or expose module. https://github.com/substack/node-browserify/blob/f9c2561/index.js#L711 |
@zertosh I'll look into it and report back. |
@zertosh I'm not sure what's happening with @mattfysh's result. I tried the API repro and I get @zertosh I didn't trace this in detail, but I looked at the line you highlighted and I can see how my change in #1077 would affect that. This is another example of complications arising from the row props being poorly specified. Is it a bug? Not sure. I have some questions about how
|
It looks like the 10.2.4 release has changed the order of the CLI entry file and b.require files when they are pushed through the pipeline to "label", resulting in the wrong module being exported ie.
_bpack.standaloneModule
.e.g. if running with
browserify src/main.js -s app
and also using a plugin that setsb.require(config.js', {expose: 'config'})
, looking for window.app now returns the config.js exports, instead of src/main.js exportsThe text was updated successfully, but these errors were encountered: