-
Type: Improvement
-
Resolution: Unresolved
-
Priority: Minor - P4
-
None
-
Affects Version/s: None
-
Component/s: Electron
-
1 - XS (<= 1 day)
-
6271
Problem
Current regex requires user to put needed packages in allow-list all the time.
Solution
Wouldn't it better to do
const path = require("node:path"); const nodeExternals = require("webpack-node-externals"); module.exports = { webpack: { configure: { target: "electron-renderer", externals: [ nodeExternals({ allowlist: [/^(?!.*(^realm)$)/i], additionalModuleDirs: [path.resolve(__dirname, '../../../node_modules')], }), ], }, }, };
so we basically say, pack everything except realm.
Alternatives
No response
How important is this improvement for you?
Fairly niche but nice to have anyway
Feature would mainly be used with
Atlas Device Sync