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
Current behaviour:
I am working in a npm monorepo environment where local packages are symlinked into node_modules. Which mean that when I come to run electron-build --config ./my-config.js all the files within those local packages are included in the bundles
Expected behaviour:
Like other dependencies from npm, the only files that should be included are those that match the files field within each package.json. This happens implicitly for external dependencies because they are pulled down from npm.
Current workaround:
I can specify my own files array of glob includes and excludes within my-config.js but that is heavy handed and only works because our source code is in ts and our build artifacts are in js.
Things I tried:
I tried looking at beforePack and afterPack but they don't provide the information or mechanism for blocking the inclusion of a file.
I tried onNodeModuleFile but that is for forcing the inclusion of a file not forcing the exclusion
The text was updated successfully, but these errors were encountered:
Current behaviour:
I am working in a npm monorepo environment where local packages are symlinked into
node_modules
. Which mean that when I come to runelectron-build --config ./my-config.js
all the files within those local packages are included in the bundlesExpected behaviour:
Like other dependencies from npm, the only files that should be included are those that match the
files
field within eachpackage.json
. This happens implicitly for external dependencies because they are pulled down from npm.Current workaround:
I can specify my own
files
array of glob includes and excludes withinmy-config.js
but that is heavy handed and only works because our source code is ints
and our build artifacts are injs
.Things I tried:
beforePack
andafterPack
but they don't provide the information or mechanism for blocking the inclusion of a file.onNodeModuleFile
but that is for forcing the inclusion of a file not forcing the exclusionThe text was updated successfully, but these errors were encountered: