-
Notifications
You must be signed in to change notification settings - Fork 41
liferay-npm-bundler fails if no .npmbundlerrc file is found #29
Comments
Do you mean running |
Yes. I copy pasted the wrong name. I have edited my first comment. |
Let's leave it like is for now and see what people expect from using it without a config. |
After looking at it in more detail, we will finally set |
Oops! This is far more difficult than I thought. Babel doesn't do it either. The technical problem is that if the bundler assumes a default preset, it has to include the preset internally because the project (to which the bundler is being applied) won't have it. That could be done, but it wouldn't leave control to the user about the version of the preset to use. Then, we could let users override the preset version by adding a .npmbundlerrc file, but it would make the plugins resolution more complex and could lead to inconsistencies, so I find it safer not to assume a default preset. |
A way to fix this would be running
liferay-npm-bundler-preset-standard
by default if no.npmbundlerrc
file is found.The text was updated successfully, but these errors were encountered: