You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
chenjiahan
changed the title
[Feature]: 是否可以支持 npm install --omit=optional 安装方式
[Feature]: Can we support npm install --omit=optional installation method?
Dec 24, 2024
Thank you for your suggestion. We consider postinstall to be an unsafe behavior, and package managers may disable postinstall by default in the future. So Rspack will not install optional dependencies through postinstall.
What problem does this feature solve?
可以学习一下 esbuild 提供一个 install.js 在 postinstall 时运行,安装选项包吗?这样的话,在生产环境,可以方便我把开发辅助包如 eslint 等omit掉
现象:
通过 npm install --omit=optional 的安装方式
@rspack/binding 包不会安装 '@rspack/binding-darwin-x64' 工作包。
希望可以支持 omit optional 的安装方式
What does the proposed API of configuration look like?
npm install --omit=optional
The text was updated successfully, but these errors were encountered: