@jsenv/core 38.0.3 → 38.0.4
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/dist/jsenv_core.js
CHANGED
|
@@ -8258,19 +8258,6 @@ const versionToBits$2 = (version) => {
|
|
|
8258
8258
|
return (major << 16) | (minor << 8) | patch;
|
|
8259
8259
|
};
|
|
8260
8260
|
|
|
8261
|
-
/*
|
|
8262
|
-
* TODO:
|
|
8263
|
-
* js classic might contain importScripts or self.importScripts calls
|
|
8264
|
-
* (when it's inside worker, service worker, etc...)
|
|
8265
|
-
* ideally we should bundle it when urlInfo.subtype === "worker"
|
|
8266
|
-
*/
|
|
8267
|
-
|
|
8268
|
-
// import { createMagicSource } from "@jsenv/utils/sourcemap/magic_source.js"
|
|
8269
|
-
|
|
8270
|
-
const bundleJsClassic = () => {
|
|
8271
|
-
return {};
|
|
8272
|
-
};
|
|
8273
|
-
|
|
8274
8261
|
const bundleJsModules = async (
|
|
8275
8262
|
jsModuleUrlInfos,
|
|
8276
8263
|
{
|
|
@@ -8707,11 +8694,6 @@ const jsenvPluginBundling = ({
|
|
|
8707
8694
|
return bundleCss(cssUrlInfos);
|
|
8708
8695
|
};
|
|
8709
8696
|
}
|
|
8710
|
-
if (js_classic) {
|
|
8711
|
-
bundle.js_classic = (jsClassicUrlInfos) => {
|
|
8712
|
-
return bundleJsClassic();
|
|
8713
|
-
};
|
|
8714
|
-
}
|
|
8715
8697
|
if (js_module) {
|
|
8716
8698
|
if (js_module === true) {
|
|
8717
8699
|
js_module = {};
|
|
@@ -9231,7 +9213,7 @@ export default inlineContent.text;`,
|
|
|
9231
9213
|
*
|
|
9232
9214
|
*/
|
|
9233
9215
|
const babelHelperClientDirectoryUrl = new URL(
|
|
9234
|
-
"
|
|
9216
|
+
"./babel_helpers/",
|
|
9235
9217
|
import.meta.url,
|
|
9236
9218
|
).href;
|
|
9237
9219
|
|
|
@@ -19780,7 +19762,12 @@ ${ANSI.color(buildUrl, ANSI.MAGENTA)}
|
|
|
19780
19762
|
return buildUrlFromCache;
|
|
19781
19763
|
}
|
|
19782
19764
|
if (urlInfo.type === "directory") {
|
|
19783
|
-
|
|
19765
|
+
let directoryPath;
|
|
19766
|
+
if (urlInfo.filenameHint) {
|
|
19767
|
+
directoryPath = urlInfo.filenameHint;
|
|
19768
|
+
} else {
|
|
19769
|
+
directoryPath = urlToRelativeUrl(url, sourceDirectoryUrl);
|
|
19770
|
+
}
|
|
19784
19771
|
const { search } = new URL(url);
|
|
19785
19772
|
const buildUrl = `${buildDirectoryUrl}${directoryPath}${search}`;
|
|
19786
19773
|
associateBuildUrl(url, buildUrl);
|
|
@@ -21472,8 +21459,8 @@ build ${entryPointKeys.length} entry points`);
|
|
|
21472
21459
|
? [jsenvPluginLineBreakNormalization()]
|
|
21473
21460
|
: []),
|
|
21474
21461
|
jsenvPluginJsModuleFallback({
|
|
21475
|
-
remapImportSpecifier: (specifier) => {
|
|
21476
|
-
return buildSpecifierManager.remapPlaceholder(specifier);
|
|
21462
|
+
remapImportSpecifier: (specifier, parentUrl) => {
|
|
21463
|
+
return buildSpecifierManager.remapPlaceholder(specifier, parentUrl);
|
|
21477
21464
|
},
|
|
21478
21465
|
}),
|
|
21479
21466
|
jsenvPluginInlining(),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jsenv/core",
|
|
3
|
-
"version": "38.0.
|
|
3
|
+
"version": "38.0.4",
|
|
4
4
|
"description": "Tool to develop, test and build js projects",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": {
|
|
@@ -67,7 +67,7 @@
|
|
|
67
67
|
"@jsenv/integrity": "0.0.1",
|
|
68
68
|
"@jsenv/log": "3.4.0",
|
|
69
69
|
"@jsenv/node-esm-resolution": "1.0.1",
|
|
70
|
-
"@jsenv/js-module-fallback": "1.3.
|
|
70
|
+
"@jsenv/js-module-fallback": "1.3.1",
|
|
71
71
|
"@jsenv/runtime-compat": "1.2.0",
|
|
72
72
|
"@jsenv/server": "15.1.0",
|
|
73
73
|
"@jsenv/sourcemap": "1.2.0",
|
package/src/build/build.js
CHANGED
|
@@ -353,8 +353,8 @@ build ${entryPointKeys.length} entry points`);
|
|
|
353
353
|
? [jsenvPluginLineBreakNormalization()]
|
|
354
354
|
: []),
|
|
355
355
|
jsenvPluginJsModuleFallback({
|
|
356
|
-
remapImportSpecifier: (specifier) => {
|
|
357
|
-
return buildSpecifierManager.remapPlaceholder(specifier);
|
|
356
|
+
remapImportSpecifier: (specifier, parentUrl) => {
|
|
357
|
+
return buildSpecifierManager.remapPlaceholder(specifier, parentUrl);
|
|
358
358
|
},
|
|
359
359
|
}),
|
|
360
360
|
jsenvPluginInlining(),
|
|
@@ -34,7 +34,12 @@ ${ANSI.color(buildUrl, ANSI.MAGENTA)}
|
|
|
34
34
|
return buildUrlFromCache;
|
|
35
35
|
}
|
|
36
36
|
if (urlInfo.type === "directory") {
|
|
37
|
-
|
|
37
|
+
let directoryPath;
|
|
38
|
+
if (urlInfo.filenameHint) {
|
|
39
|
+
directoryPath = urlInfo.filenameHint;
|
|
40
|
+
} else {
|
|
41
|
+
directoryPath = urlToRelativeUrl(url, sourceDirectoryUrl);
|
|
42
|
+
}
|
|
38
43
|
const { search } = new URL(url);
|
|
39
44
|
const buildUrl = `${buildDirectoryUrl}${directoryPath}${search}`;
|
|
40
45
|
associateBuildUrl(url, buildUrl);
|