-
Notifications
You must be signed in to change notification settings - Fork 101
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
Transforms broken when use ES7 Decorators or YAML #111
Comments
If it broke in 4.0.5, then it has to be this PR that broke it: 2f1a54d Does your dependency hierarchy involve doing anything like requiring a file |
Yes, i have some thing that require from node_modules. https://github.com/markuplab/catbee-boilerplate/tree/master/packages/config |
Requiring from node_modules is okay. The way 4.0.5 would deviate from past behavior is if something inside node_modules required something outside of node_modules. What does the dependency graph look like between the entry point and the YAML + ES7 files that are failing? |
entry point |
https://github.com/markuplab/catbee-boilerplate - I don't test, but i think you can use it as example because it's based on our current project with yaml and es7. Clone, npm i and node build |
Okay, that's what I figured. Indeed 4.0.5 would cause this to break. Personally I feel like this usage pattern breaks the usual assumptions of modularity on node_modules, and it could also break on an npm dedupe. I'm inclined not to blame browserify for getting confused. But that might just be me being defensive about my own PR; I did consider this possibility and thought (incorrectly) that no one was actually doing this. I'll defer to @substack or other contributors, all more veteran than me, on whether this is a use-case we need to support. |
Ok, thanx for you help. It's critical problem for us, because our framework system based on browserify. |
@substack Can you join in this discussion? We still have problem. |
overloading |
We don't overload require.
I think browserify must support internal builders, because it's very comfortable to use. |
I support this statement; I'd recommend you use a different pattern - if you think that is not a viable option, then I cannot help you any further. |
It's problem repeated with babel. It's also overloading?) |
Hello @substack. We use 2 transform (babel and yamlify).
When we update to module-deps 4.0.5, browserify throw next error:
This error in yaml file.
or detailed example with error stack:
This error in js file
Error code example:
If you need, i provide you example with code.
Error reproduce only in 4.0.5, 4.0.4 work correctly.
The text was updated successfully, but these errors were encountered: