@storm-software/esbuild 0.31.20 → 0.31.22
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.
- package/README.md +1 -1
- package/bin/esbuild.cjs +6 -2
- package/dist/build.cjs +2 -2
- package/dist/build.js +1 -1
- package/dist/{chunk-KWCU6MTG.cjs → chunk-HLLCUIVO.cjs} +8 -4
- package/dist/{chunk-GQSWMSGM.js → chunk-WVF6W7Q2.js} +6 -2
- package/dist/index.cjs +2 -2
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -21,7 +21,7 @@ This package is part of the <b>⚡Storm-Ops</b> monorepo. The Storm-Ops packages
|
|
|
21
21
|
|
|
22
22
|
<h3 align="center">💻 Visit <a href="https://stormsoftware.com" target="_blank">stormsoftware.com</a> to stay up to date with this developer</h3><br />
|
|
23
23
|
|
|
24
|
-
[](https://prettier.io/) [](http://nx.dev/) [](https://nextjs.org/) [](http://commitizen.github.io/cz-cli/)  [](https://fumadocs.vercel.app/) 
|
|
25
25
|
|
|
26
26
|
<!-- prettier-ignore-start -->
|
|
27
27
|
<!-- markdownlint-disable -->
|
package/bin/esbuild.cjs
CHANGED
|
@@ -804,12 +804,16 @@ var resolveOptions = /* @__PURE__ */ __name(async (userOptions) => {
|
|
|
804
804
|
};
|
|
805
805
|
}, {})
|
|
806
806
|
},
|
|
807
|
-
inject:
|
|
807
|
+
inject: [
|
|
808
808
|
options.format === "cjs" && options.injectShims ? (0, import_correct_paths2.joinPaths)(__dirname, "../assets/cjs_shims.js") : "",
|
|
809
809
|
options.format === "esm" && options.injectShims && options.platform === "node" ? (0, import_correct_paths2.joinPaths)(__dirname, "../assets/esm_shims.js") : ""
|
|
810
|
-
]
|
|
810
|
+
]
|
|
811
811
|
};
|
|
812
812
|
result.plugins = userOptions.plugins ?? getDefaultBuildPlugins(userOptions, result);
|
|
813
|
+
if (options.inject) {
|
|
814
|
+
options.inject = (0, import_defu.default)(result.inject, options.inject);
|
|
815
|
+
}
|
|
816
|
+
options.inject?.filter(Boolean);
|
|
813
817
|
delete result.entry;
|
|
814
818
|
delete result.outputPath;
|
|
815
819
|
stopwatch();
|
package/dist/build.cjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunkHLLCUIVOcjs = require('./chunk-HLLCUIVO.cjs');
|
|
5
5
|
require('./chunk-ATQXZL2N.cjs');
|
|
6
6
|
require('./chunk-AGWKKDSC.cjs');
|
|
7
7
|
require('./chunk-S6M44SSZ.cjs');
|
|
@@ -18,4 +18,4 @@ require('./chunk-BGYQAVKQ.cjs');
|
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
|
|
21
|
-
exports.build =
|
|
21
|
+
exports.build = _chunkHLLCUIVOcjs.build; exports.cleanOutputPath = _chunkHLLCUIVOcjs.cleanOutputPath;
|
package/dist/build.js
CHANGED
|
@@ -361,12 +361,16 @@ var resolveOptions = /* @__PURE__ */ _chunkBGYQAVKQcjs.__name.call(void 0, async
|
|
|
361
361
|
};
|
|
362
362
|
}, {})
|
|
363
363
|
},
|
|
364
|
-
inject:
|
|
364
|
+
inject: [
|
|
365
365
|
options.format === "cjs" && options.injectShims ? _chunkXITTOHOGcjs.joinPaths.call(void 0, __dirname, "../assets/cjs_shims.js") : "",
|
|
366
366
|
options.format === "esm" && options.injectShims && options.platform === "node" ? _chunkXITTOHOGcjs.joinPaths.call(void 0, __dirname, "../assets/esm_shims.js") : ""
|
|
367
|
-
]
|
|
367
|
+
]
|
|
368
368
|
};
|
|
369
369
|
result.plugins = _nullishCoalesce(userOptions.plugins, () => ( _chunkAGWKKDSCcjs.getDefaultBuildPlugins.call(void 0, userOptions, result)));
|
|
370
|
+
if (options.inject) {
|
|
371
|
+
options.inject = _defu2.default.call(void 0, result.inject, options.inject);
|
|
372
|
+
}
|
|
373
|
+
_optionalChain([options, 'access', _16 => _16.inject, 'optionalAccess', _17 => _17.filter, 'call', _18 => _18(Boolean)]);
|
|
370
374
|
delete result.entry;
|
|
371
375
|
delete result.outputPath;
|
|
372
376
|
stopwatch();
|
|
@@ -491,7 +495,7 @@ ${_chunkIQNPH4CNcjs.formatLogMessage.call(void 0, options)}`, context2.options.c
|
|
|
491
495
|
}
|
|
492
496
|
_chunkBGYQAVKQcjs.__name.call(void 0, executeEsBuild, "executeEsBuild");
|
|
493
497
|
async function copyBuildAssets(context2) {
|
|
494
|
-
if (_optionalChain([context2, 'access',
|
|
498
|
+
if (_optionalChain([context2, 'access', _19 => _19.result, 'optionalAccess', _20 => _20.errors, 'access', _21 => _21.length]) === 0) {
|
|
495
499
|
_chunkIQNPH4CNcjs.writeDebug.call(void 0, ` \u{1F4CB} Copying asset files to output directory: ${context2.options.outdir}`, context2.options.config);
|
|
496
500
|
const stopwatch = _chunkIQNPH4CNcjs.getStopwatch.call(void 0, `${context2.options.name} asset copy`);
|
|
497
501
|
await _chunkAGWKKDSCcjs.copyAssets.call(void 0, context2.options.config, _nullishCoalesce(context2.options.assets, () => ( [])), context2.options.outdir, context2.options.projectRoot, context2.options.sourceRoot, true, false);
|
|
@@ -501,7 +505,7 @@ async function copyBuildAssets(context2) {
|
|
|
501
505
|
}
|
|
502
506
|
_chunkBGYQAVKQcjs.__name.call(void 0, copyBuildAssets, "copyBuildAssets");
|
|
503
507
|
async function reportResults(context2) {
|
|
504
|
-
if (_optionalChain([context2, 'access',
|
|
508
|
+
if (_optionalChain([context2, 'access', _22 => _22.result, 'optionalAccess', _23 => _23.errors, 'access', _24 => _24.length]) === 0) {
|
|
505
509
|
if (context2.result.warnings.length > 0) {
|
|
506
510
|
_chunkIQNPH4CNcjs.writeWarning.call(void 0, ` \u{1F6A7} The following warnings occurred during the build: ${context2.result.warnings.map((warning) => warning.text).join("\n")}`, context2.options.config);
|
|
507
511
|
}
|
|
@@ -361,12 +361,16 @@ var resolveOptions = /* @__PURE__ */ __name(async (userOptions) => {
|
|
|
361
361
|
};
|
|
362
362
|
}, {})
|
|
363
363
|
},
|
|
364
|
-
inject:
|
|
364
|
+
inject: [
|
|
365
365
|
options.format === "cjs" && options.injectShims ? joinPaths(__dirname, "../assets/cjs_shims.js") : "",
|
|
366
366
|
options.format === "esm" && options.injectShims && options.platform === "node" ? joinPaths(__dirname, "../assets/esm_shims.js") : ""
|
|
367
|
-
]
|
|
367
|
+
]
|
|
368
368
|
};
|
|
369
369
|
result.plugins = userOptions.plugins ?? getDefaultBuildPlugins(userOptions, result);
|
|
370
|
+
if (options.inject) {
|
|
371
|
+
options.inject = defu(result.inject, options.inject);
|
|
372
|
+
}
|
|
373
|
+
options.inject?.filter(Boolean);
|
|
370
374
|
delete result.entry;
|
|
371
375
|
delete result.outputPath;
|
|
372
376
|
stopwatch();
|
package/dist/index.cjs
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
var
|
|
10
|
+
var _chunkHLLCUIVOcjs = require('./chunk-HLLCUIVO.cjs');
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
|
|
@@ -41,4 +41,4 @@ require('./chunk-BGYQAVKQ.cjs');
|
|
|
41
41
|
|
|
42
42
|
|
|
43
43
|
|
|
44
|
-
exports.DEFAULT_BUILD_OPTIONS = _chunkAGWKKDSCcjs.DEFAULT_BUILD_OPTIONS; exports.Filter =
|
|
44
|
+
exports.DEFAULT_BUILD_OPTIONS = _chunkAGWKKDSCcjs.DEFAULT_BUILD_OPTIONS; exports.Filter = _chunkHLLCUIVOcjs.Filter; exports.Mapper = _chunkHLLCUIVOcjs.Mapper; exports.build = _chunkHLLCUIVOcjs.build; exports.clean = _chunkATQXZL2Ncjs.clean; exports.cleanDirectories = _chunkATQXZL2Ncjs.cleanDirectories; exports.cleanOutputPath = _chunkHLLCUIVOcjs.cleanOutputPath; exports.getDefaultBuildPlugins = _chunkAGWKKDSCcjs.getDefaultBuildPlugins; exports.handle = _chunkHLLCUIVOcjs.handle; exports.pipe = _chunkHLLCUIVOcjs.pipe; exports.skip = _chunkHLLCUIVOcjs.skip; exports.transduce = _chunkHLLCUIVOcjs.transduce;
|
package/dist/index.js
CHANGED
package/package.json
CHANGED