-
-
Notifications
You must be signed in to change notification settings - Fork 866
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
Bring your own dependencies #534
Comments
Totally understand the frustration. Razzle runs on a lot of mission critical applications for my clients, so locking down deps is just a habit. When Babel 7 is released, I plan to do a large overhaul. I will consider relaxing them. |
Feel free to submit a PR with the changes to eslint you'd like to see |
Any ideas when this will get a npm tag so we can pull this as a dependency? |
I have been working on 2. I think it’s about time to tag 0.8 as 1 |
Following on from @bartlangelaan's comment - I was also trying to use
Hope this helps. |
@JP-GNL in which file did you put this? |
Sorry, should have said: |
So for clarity, using the example for
|
Hola! So here's the deal, between open source and my day job and life and what not, I have a lot to manage, so I use a GitHub bot to automate a few things here and there. This particular GitHub bot is going to mark this as stale because it has not had recent activity for a while. It will be closed if no further activity occurs in a few days. Do not take this personally--seriously--this is a completely automated action. If this is a mistake, just make a comment, DM me, send a carrier pidgeon, or a smoke signal. |
ProBot automatically closed this due to inactivity. Holler if this is a mistake, and we'll re-open it. |
Thank you @AndyArcherKG! I was fighting with this for a while, your solution works perfectly, didn't realize that was possible. |
Razzle is awesome because of it's no-config-needed approach. Everything works out of the box.
To make this all possible, Razzle has a lot of dependencies. Currently, these dependencies are locked. It seems like they are locked since 2e68e7d.
By locking these dependencies, it's hard for projects that use razzle to upgrade to a newer version of these dependencies. For example, eslint is currently locked at
4.5.0
while the latest version is4.18.2
. As stated in #404, old dependencies can become incompatible with other modules like eslint-config-airbnb.If you run
yarn add eslint
, the newest version of eslint will be added to the project. But Razzle will still use the old version, because it's dependencies are locked. The only way to make Razzle use the new eslint is by changing the webpack config, but the old eslint will still be installed while it's never used.Why were the Razzle dependencies locked? When they are loosened with a caret, it would be easier for users to update modules like eslint and babel. As long as dependencies uphold semver, updating them won't break Razzle.
The text was updated successfully, but these errors were encountered: