-
Notifications
You must be signed in to change notification settings - Fork 10.3k
chore(gatsby-cli): bundle dependencies #27058
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
Conversation
laurieontech
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One comment for future proofing, this looks reasonable to me but admittedly should get a second set of eyes.
4bff535 to
df712b4
Compare
989cebd to
201268d
Compare
201268d to
aec6f26
Compare
799f2f9 to
dfe1502
Compare
aec6f26 to
754e428
Compare
dfe1502 to
778e214
Compare
754e428 to
c3e0d74
Compare
| { | ||
| "presets": [["babel-preset-gatsby-package"]] | ||
| "presets": [ | ||
| [ | ||
| "@babel/env", | ||
| { | ||
| "modules": false, | ||
| "shippedProposals": true, | ||
| "targets": { "node": "10.13.0" } | ||
| } | ||
| ], | ||
| "@babel/preset-react" | ||
| ], | ||
| "plugins": ["@babel/plugin-transform-runtime"], | ||
| "overrides": [ | ||
| { | ||
| "test": ["**/*.ts", "**/*.tsx"], | ||
| "plugins": [["@babel/plugin-transform-typescript", { "isTSX": true }]] | ||
| } | ||
| ] | ||
| } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
could we move this inline into rollup config? So we use non-rollup-babel like all other packages?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Addressed in 4a1de69
33729b8 to
95edecb
Compare
c3e0d74 to
15f0f14
Compare
95edecb to
0d79ce8
Compare
b45b9e6 to
f5e1b29
Compare
wardpeet
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great!
0d79ce8 to
3c2effc
Compare
28ab48e to
e64a9cb
Compare
e64a9cb to
af4bcf4
Compare
This PR bundles quite a bit of dependencies which cause problems for users (react, ink) when there are multiple version of those installed in node_modules hierarchy is not quite right
This is part of PR series:
feat(gatsby-dev-cli): install deps if there are no gatsby deps but --forceInstall was usedtest(integration/gatsby-cli): use sandboxed directory to "globally" install gatsby-clichore(gatsby-recipes): bundle dependencieschore(gatsby-cli): bundle dependencies(THIS PR)[ch17886]