-
Notifications
You must be signed in to change notification settings - Fork 297
Add coffee-script
module as a dependency
#68
Comments
Thank you for reporing an issue. I have almost no experiences with Webpack so propably I'm wrong, but what if you add |
I don't want to add a If you're using someone's module in your own project, you must declare it as a dependency. |
Also if someone will install your module and that person would not have a |
Ok I thought you're using coffee-script. In that case, this library is not webpack compatbile atm. I will try to figure this out if I have some free time. |
This is not a case of compatibility with webpack. It's a case of how you publish and supply your module to npm. |
I don't agree, this library does work without coffee-script properly so there is no reason to link it as a required dependency. It is only used when user explcitly states that he or she wants to use coffee-script. I will refactor this to some kind of plugin mechanism. |
The reason is that you explicitly require the If you already got the Also I don't agree that this is a |
Yes, you have precisely described how it works right now. The library expects user to have coffee-script installed if the compiler is set to coffee. |
You're right about the docs, it's updated. |
Yeah, documentation fix doesn't solve the issue. You still have the |
Yes, and as I wrote in previous post, I will refactor this to some kind of plugin mechanism so it will be webpack compatible. |
Never mind, if it's so hard for you to run one simple command:
I will no longer use nor wait for your project to fix the issue. |
@patriksimek Personally, I see the benefit of having some kind of plugin mechanism. How about something simple like Then users that need CoffeeScript could set |
@dkfiresky Wow, you really expected me to force tens of thousands users to download coffee-script even if they don't need it just because you are not willing to wait for a proper solution? Thats sad. @n-riesco Actually this is already supported. The problem is that dropping support for |
@patriksimek I expect you to deliver your module correctly. The use of coffee-script is your own responsibility. If you use it, you must define it as a dependency. If you don't agree, then remove that require statement and the compiler option that states This issue was created because your module doesn't work out of the box. Waiting 18 days for you to run a simple install command sounds like a joke. |
Moreover if you state that your module compiles |
That what you did by |
You still expecting me to do what I said I'll never do. So again - this module is not compatbile with Webpack at the moment, please, don't use this library. |
@patriksimek this module is not compatible nor runnable on any environment without |
@dkfiresky Sure, if you think so. I'm no longer interested in convincing you that you're wrong. Can we please stop this useless discussion? |
@patriksimek yes, sure. Please go read some npm docs. |
I get this too in a fresh react project, before I added vm2 as a dependency I had no errors about coffee-script
|
Even though the tone of the discussion was not very constructive, I really believe |
This is now breaking proxy-agent and its dependent library degenerator. |
This needs to be configured in Webpack. The |
While running your module via code that is transformed by the webpack/babel, I get following issue:
https://github.com/patriksimek/vm2/blob/master/lib/main.js#L19
In this line you're using
coffee-script
module, but it's not defined as a module dependency.So when webpack tries to map all the requires it crashes cause it can't find the
coffee-script
module anywhere.UPD: this is not a feature request, this is vm2 module dependencies issue. Until this module has this line present, it will not work with compiler option specified as
coffee-script
on any environment without coffee-script module installed.The text was updated successfully, but these errors were encountered: