@storm-software/esbuild 0.35.7 → 0.35.8
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 +1 -1
- package/dist/assets.cjs +6 -6
- package/dist/assets.js +5 -5
- package/dist/build.cjs +14 -14
- package/dist/build.js +13 -13
- package/dist/{chunk-LKXMEOMY.cjs → chunk-2NQYRZKO.cjs} +51 -51
- package/dist/{chunk-L2IEBOYL.js → chunk-3VHLCZ6F.js} +2 -2
- package/dist/chunk-5R3LX6E4.cjs +6 -0
- package/dist/{chunk-4RTT7CNA.js → chunk-5ZPCV2IJ.js} +17 -17
- package/dist/{chunk-EDL2KB25.js → chunk-A66EGME2.js} +8 -8
- package/dist/{chunk-ATYG4K55.cjs → chunk-B4NWTB7S.cjs} +106 -106
- package/dist/{chunk-CJU3AWWU.js → chunk-CA7VVNV2.js} +3 -3
- package/dist/{chunk-S6TVQK6G.js → chunk-CHAHHSIR.js} +2 -2
- package/dist/{chunk-BDAEVRE2.cjs → chunk-CY4KF2US.cjs} +14 -14
- package/dist/{chunk-WXQTUY4R.cjs → chunk-E6GNR4XY.cjs} +7 -7
- package/dist/{chunk-QFPOX3D5.js → chunk-EBZ4R3MW.js} +4 -4
- package/dist/{chunk-LGNAN6MS.cjs → chunk-G277DR3N.cjs} +28 -28
- package/dist/{chunk-ENZZJ5B6.js → chunk-GCKE6M7A.js} +6 -6
- package/dist/{chunk-EB5Y3WAG.js → chunk-GKAHDFNO.js} +2 -2
- package/dist/{chunk-6IWYW2O3.js → chunk-GWGBQKRY.js} +2 -2
- package/dist/{chunk-AB6MCXGW.cjs → chunk-IV2WE7RO.cjs} +7 -7
- package/dist/{chunk-3S3PZ7EY.js → chunk-JNDYTIRD.js} +2 -2
- package/dist/{chunk-MFXVX4RL.cjs → chunk-KK2BGIRB.cjs} +8 -8
- package/dist/{chunk-N2NUZ6C6.cjs → chunk-N6KCNJOR.cjs} +7 -7
- package/dist/{chunk-SMZKC6PE.cjs → chunk-Q77NJNNL.cjs} +7 -7
- package/dist/{chunk-IAXKJC2K.js → chunk-QBMHS72C.js} +1 -1
- package/dist/{chunk-A6IWHLKB.js → chunk-SAK5QFCE.js} +3 -3
- package/dist/{chunk-HWMRRY5X.js → chunk-SPVR557L.js} +3 -3
- package/dist/{chunk-QOP64GGO.cjs → chunk-TKNLZW4V.cjs} +2 -2
- package/dist/{chunk-VCCAKBC6.js → chunk-UA2A6OC6.js} +1 -1
- package/dist/{chunk-JSWTO2OC.cjs → chunk-VEN2NPFW.cjs} +19 -19
- package/dist/{chunk-NSXYKOKK.cjs → chunk-ZDMKNQUW.cjs} +5 -5
- package/dist/{chunk-KU3PHLUZ.cjs → chunk-ZS2HZUYH.cjs} +194 -194
- package/dist/clean.cjs +5 -5
- package/dist/clean.js +4 -4
- package/dist/config.cjs +6 -6
- package/dist/config.js +5 -5
- package/dist/context.cjs +8 -8
- package/dist/context.js +7 -7
- package/dist/index.cjs +16 -16
- package/dist/index.js +14 -14
- package/dist/package-json.cjs +6 -6
- package/dist/package-json.js +5 -5
- package/dist/plugins/deps-check.cjs +5 -5
- package/dist/plugins/deps-check.js +4 -4
- package/dist/plugins/resolve-paths.cjs +4 -4
- package/dist/plugins/resolve-paths.js +3 -3
- package/dist/tsup.cjs +5 -5
- package/dist/tsup.js +4 -4
- package/dist/types.cjs +2 -2
- package/dist/types.js +2 -2
- package/dist/watch.cjs +14 -14
- package/dist/watch.js +3 -3
- package/package.json +4 -4
- package/dist/chunk-K6SD2RXI.cjs +0 -6
|
@@ -1,27 +1,27 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkE6GNR4XYcjs = require('./chunk-E6GNR4XY.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkZDMKNQUWcjs = require('./chunk-ZDMKNQUW.cjs');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
var
|
|
10
|
+
var _chunkB4NWTB7Scjs = require('./chunk-B4NWTB7S.cjs');
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
var
|
|
14
|
+
var _chunk2NQYRZKOcjs = require('./chunk-2NQYRZKO.cjs');
|
|
15
15
|
|
|
16
16
|
|
|
17
|
-
var
|
|
17
|
+
var _chunkQ77NJNNLcjs = require('./chunk-Q77NJNNL.cjs');
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
|
|
21
|
-
var
|
|
21
|
+
var _chunkTKNLZW4Vcjs = require('./chunk-TKNLZW4V.cjs');
|
|
22
22
|
|
|
23
23
|
// src/context.ts
|
|
24
|
-
|
|
24
|
+
_chunkTKNLZW4Vcjs.init_cjs_shims.call(void 0, );
|
|
25
25
|
var _devkit = require('@nx/devkit');
|
|
26
26
|
var _defu = require('defu'); var _defu2 = _interopRequireDefault(_defu);
|
|
27
27
|
var _fs = require('fs');
|
|
@@ -33,15 +33,15 @@ async function resolveContext(userOptions) {
|
|
|
33
33
|
if (!workspaceRoot) {
|
|
34
34
|
throw new Error("Cannot find Nx workspace root");
|
|
35
35
|
}
|
|
36
|
-
const workspaceConfig = await
|
|
36
|
+
const workspaceConfig = await _chunkB4NWTB7Scjs.getWorkspaceConfig.call(void 0, true, {
|
|
37
37
|
workspaceRoot: workspaceRoot.dir
|
|
38
38
|
});
|
|
39
|
-
|
|
40
|
-
const stopwatch =
|
|
39
|
+
_chunk2NQYRZKOcjs.writeDebug.call(void 0, " \u2699\uFE0F Resolving build options", workspaceConfig);
|
|
40
|
+
const stopwatch = _chunk2NQYRZKOcjs.getStopwatch.call(void 0, "Build options resolution");
|
|
41
41
|
const projectGraph = await _devkit.createProjectGraphAsync.call(void 0, {
|
|
42
42
|
exitOnError: true
|
|
43
43
|
});
|
|
44
|
-
const projectJsonPath =
|
|
44
|
+
const projectJsonPath = _chunkQ77NJNNLcjs.joinPaths.call(void 0, workspaceRoot.dir, projectRoot, "project.json");
|
|
45
45
|
if (!_fs.existsSync.call(void 0, projectJsonPath)) {
|
|
46
46
|
throw new Error("Cannot find project.json configuration");
|
|
47
47
|
}
|
|
@@ -52,16 +52,16 @@ async function resolveContext(userOptions) {
|
|
|
52
52
|
if (!_optionalChain([projectConfigurations, 'optionalAccess', _ => _.projects, 'optionalAccess', _2 => _2[projectName]])) {
|
|
53
53
|
throw new Error("The Build process failed because the project does not have a valid configuration in the project.json file. Check if the file exists in the root of the project.");
|
|
54
54
|
}
|
|
55
|
-
const options = _defu2.default.call(void 0, userOptions,
|
|
55
|
+
const options = _defu2.default.call(void 0, userOptions, _chunkZDMKNQUWcjs.DEFAULT_BUILD_OPTIONS);
|
|
56
56
|
options.name ??= projectName;
|
|
57
|
-
const packageJsonPath =
|
|
57
|
+
const packageJsonPath = _chunkQ77NJNNLcjs.joinPaths.call(void 0, workspaceRoot.dir, options.projectRoot, "package.json");
|
|
58
58
|
if (!_fs.existsSync.call(void 0, packageJsonPath)) {
|
|
59
59
|
throw new Error("Cannot find package.json configuration");
|
|
60
60
|
}
|
|
61
|
-
const env =
|
|
61
|
+
const env = _chunkB4NWTB7Scjs.getEnv.call(void 0, "esbuild", options);
|
|
62
62
|
const define = _defu2.default.call(void 0, _nullishCoalesce(options.define, () => ( {})), _nullishCoalesce(env, () => ( {})));
|
|
63
63
|
const resolvedOptions = {
|
|
64
|
-
tsconfig:
|
|
64
|
+
tsconfig: _chunkQ77NJNNLcjs.joinPaths.call(void 0, workspaceRoot.dir, projectRoot, "tsconfig.json"),
|
|
65
65
|
...options,
|
|
66
66
|
metafile: userOptions.mode === "development",
|
|
67
67
|
clean: false,
|
|
@@ -87,17 +87,17 @@ async function resolveContext(userOptions) {
|
|
|
87
87
|
projectConfigurations,
|
|
88
88
|
projectName,
|
|
89
89
|
projectGraph,
|
|
90
|
-
sourceRoot: resolvedOptions.sourceRoot || projectJson.sourceRoot ||
|
|
91
|
-
outputPath: resolvedOptions.outputPath ||
|
|
90
|
+
sourceRoot: resolvedOptions.sourceRoot || projectJson.sourceRoot || _chunkQ77NJNNLcjs.joinPaths.call(void 0, resolvedOptions.projectRoot, "src"),
|
|
91
|
+
outputPath: resolvedOptions.outputPath || _chunkQ77NJNNLcjs.joinPaths.call(void 0, workspaceConfig.workspaceRoot, "dist", resolvedOptions.projectRoot),
|
|
92
92
|
minify: resolvedOptions.minify || resolvedOptions.mode === "production"
|
|
93
93
|
};
|
|
94
94
|
context.options.esbuildPlugins = [
|
|
95
|
-
|
|
95
|
+
_chunkE6GNR4XYcjs.resolvePathsPlugin.call(void 0, context),
|
|
96
96
|
..._nullishCoalesce(context.options.esbuildPlugins, () => ( []))
|
|
97
97
|
];
|
|
98
98
|
return context;
|
|
99
99
|
}
|
|
100
|
-
|
|
100
|
+
_chunkTKNLZW4Vcjs.__name.call(void 0, resolveContext, "resolveContext");
|
|
101
101
|
|
|
102
102
|
|
|
103
103
|
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkB4NWTB7Scjs = require('./chunk-B4NWTB7S.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkTKNLZW4Vcjs = require('./chunk-TKNLZW4V.cjs');
|
|
7
7
|
|
|
8
8
|
// src/config.ts
|
|
9
|
-
|
|
9
|
+
_chunkTKNLZW4Vcjs.init_cjs_shims.call(void 0, );
|
|
10
10
|
var DEFAULT_BUILD_OPTIONS = {
|
|
11
11
|
assets: [],
|
|
12
12
|
platform: "node",
|
|
@@ -46,8 +46,8 @@ var DEFAULT_BUILD_OPTIONS = {
|
|
|
46
46
|
".woff2": "file"
|
|
47
47
|
},
|
|
48
48
|
banner: {
|
|
49
|
-
js:
|
|
50
|
-
css:
|
|
49
|
+
js: _chunkB4NWTB7Scjs.DEFAULT_COMPILED_BANNER,
|
|
50
|
+
css: _chunkB4NWTB7Scjs.DEFAULT_COMPILED_BANNER
|
|
51
51
|
}
|
|
52
52
|
};
|
|
53
53
|
|