-
Notifications
You must be signed in to change notification settings - Fork 519
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
some npm deps fail when building their umd bundle #771
Comments
I ran into this trying to upgrade tsickle:
|
Did a bit of debugging. Didn't get to the bottom of it so I'll record some notes before I forget:
browserify is trying to resolve builtin modules like
and it's one of these being returned and then expected to be a string. my guess is that the failing packages are those that do a |
Found the issue here. browserify has a list of With npm browserify it has this mapping as a dictionary: One solution here would be to vendor in a bunch more files instead of a webpacked version. |
This contains a fix for how browserify is built, so that builtin modules don't get arbitrary webpack-assigned module IDs Fixes bazel-contrib#771
This contains a fix for how browserify is built, so that builtin modules don't get arbitrary webpack-assigned module IDs Fixes bazel-contrib#771
This contains a fix for how browserify is built, so that builtin modules don't get arbitrary webpack-assigned module IDs Fixes #771
Sigh, I was too quick to cut the release last night. I tried this downstream in the
|
@alexeagle This PR owuld solve the import/export with the es6ify plugin #761 |
okay fixed at HEAD again, it works with |
🐞 bug report
Affected Rule
npm_umd_bundle
Is this a regression?
Nope
Description
🔬 Minimal Reproduction
yarn add crc
bazel build @npm//node_modules/crc:crc.umd.js
🔥 Exception or Error
🌍 Your Environment
Operating System:
Output of
bazel version
:Rules version (SHA):
Anything else relevant?
I have a few other deps that fail with the same error:
I also tried running the bowserify command on it manually like and it worked without issue
The text was updated successfully, but these errors were encountered: