@netlify/zip-it-and-ship-it 4.29.2 → 4.29.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -17,6 +17,7 @@ const fs_1 = require("../../../../utils/fs");
|
|
|
17
17
|
const bundler_target_1 = require("./bundler_target");
|
|
18
18
|
const plugin_dynamic_imports_1 = require("./plugin_dynamic_imports");
|
|
19
19
|
const plugin_native_modules_1 = require("./plugin_native_modules");
|
|
20
|
+
const plugin_node_builtin_1 = require("./plugin_node_builtin");
|
|
20
21
|
// Maximum number of log messages that an esbuild instance will produce. This
|
|
21
22
|
// limit is important to avoid out-of-memory errors due to too much data being
|
|
22
23
|
// sent in the Go<>Node IPC channel.
|
|
@@ -45,6 +46,7 @@ const bundleJsFile = function ({ additionalModulePaths, basePath, config, extern
|
|
|
45
46
|
const dynamicImportsIncludedPaths = new Set();
|
|
46
47
|
// The list of esbuild plugins to enable for this build.
|
|
47
48
|
const plugins = [
|
|
49
|
+
(0, plugin_node_builtin_1.getNodeBuiltinPlugin)(),
|
|
48
50
|
(0, plugin_native_modules_1.getNativeModulesPlugin)(nativeNodeModules),
|
|
49
51
|
(0, plugin_dynamic_imports_1.getDynamicImportsPlugin)({
|
|
50
52
|
basePath,
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getNodeBuiltinPlugin = void 0;
|
|
4
|
+
const getNodeBuiltinPlugin = () => ({
|
|
5
|
+
name: 'builtin-modules',
|
|
6
|
+
setup(build) {
|
|
7
|
+
build.onResolve({ filter: /^node:/ }, () => ({ external: true }));
|
|
8
|
+
},
|
|
9
|
+
});
|
|
10
|
+
exports.getNodeBuiltinPlugin = getNodeBuiltinPlugin;
|
|
11
|
+
//# sourceMappingURL=plugin_node_builtin.js.map
|