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
infer target properties from different targets and fill defaults from that
custom targets can now be created via `target: false` and a plugin (similar to the other options)
add stubs from universal chunk/wasm loading and module chunk format
add externalsPresets.electron and externalsPresets.electronRenderer
node.__file/dirname: "eval-only"
* Enable presets of externals for specific targets.
940
929
*/
941
930
exportinterfaceExternalsPresets{
931
+
/**
932
+
* Treat common electron built-in modules in main and preload context like 'electron', 'ipc' or 'shell' as external and load them via require() when used.
933
+
*/
934
+
electron?: boolean;
942
935
/**
943
936
* Treat electron built-in modules in the main context like 'app', 'ipc-main' or 'shell' as external and load them via require() when used.
* Treat electron built-in modules in the preload context like 'web-frame', 'ipc-renderer' or 'shell' as external and load them via require() when used.
948
941
*/
949
942
electronPreload?: boolean;
943
+
/**
944
+
* Treat electron built-in modules in the renderer context like 'web-frame', 'ipc-renderer' or 'shell' as external and load them via require() when used.
945
+
*/
946
+
electronRenderer?: boolean;
950
947
/**
951
948
* Treat node.js built-in modules like fs, path or vm as external and load them via require() when used.
952
949
*/
953
950
node?: boolean;
954
951
/**
955
-
* Treat node-webkit legacy nw.gui module as external and load it via require() when used.
952
+
* Treat NW.js legacy nw.gui module as external and load it via require() when used.
956
953
*/
957
-
nodeWebkit?: boolean;
954
+
nwjs?: boolean;
958
955
/**
959
956
* Treat references to 'http(s)://...' and 'std:...' as external and load them via import when used (Note that this changes execution order as externals are executed before any other code in the chunk).
0 commit comments