-
Notifications
You must be signed in to change notification settings - Fork 416
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
Problem with the noInstall
options
#1012
Comments
Haven't had the chance to upgrade to 5.6.0 in my projects yet. It's midnight here, let me try bundling with the new version tomorrow. |
@j0k3r See if my tests below reflects your case. I ran the command package:
individually: true
custom:
webpack:
packagerOptions:
noInstall: true In my own
|
Hum, let me re-phrase.
If I enabled
Which means (for me) that deps aren't packaged when |
Oh, you are using the Using your repo, running
I think this confirms the issue. Further reading the code I found it actually made sense, because the files being copied are actually installed into -In my projects I let webpack crawls into In a production environment I think it's more cleaner, without a lot of nested If you're curious, using my method produces a bundle with 848KB. |
Should we try to handle the case when we use both |
Using I am not sure what the original feature request wants to achieve, maybe invite the original author for clarifications? Just drop the option in the next major upgrade if we get no replies until then. |
@russell-dot-js I think we need your input here. In #913, do you want to pack the |
@russell-dot-js could you please share your |
For my project being able to use the Any ideas for workarounds would be appreciated too. |
Hi all, Sorry for the late reply. You are correct - we always run noInstall was mainly introduced to solve for yarn PNP. I would suggest not using it if you aren't minifying your node modules and including them in your bundle. |
This combination works for me, running webpack in a workspace within an npm monorepo. Each lambda is only packaged with its required dependencies, packed into a single file. Webpack is able to search for dependencies on the root level as well as local packages in other workspaces. includeModules: false
packagerOptions:
noInstall: true With this, a includeModules:
nodeModulesRelativeDir: '../../'
packagerOptions:
noInstall: false |
@njenwei Please share your webpack config. If you are already letting webpack crawls into your |
Coming in here super late, I would love this feature. Copying packages from project root would avoid this issue (and speed up our builds massively) |
@arturenault It was a different context. With It's the packagers' job to decide if it wants to copy or even symlink, if it's exists in If you are using berry, you may try these:
|
Looks like there is an issue with the
noInstall
options (from #987 & #1003).I've tested locally and it does work. I mean, the
yarn install
isn't launched so it's fast to package but no deps are in the package.noInstall: false
noInstall: true
.webpack
folderDeps install aren't triggered but it seems that we must move the
node_modules
folder in proper directory if the option is enabled.When the option is enable, there is no
node_modules
folder inside.webpack/dependencies/
&.webpack/service/
Can someone confirm it's broken?
poke @vicary @miguel-a-calles-mba
The text was updated successfully, but these errors were encountered: