@jsenv/plugin-bundling 2.5.0 → 2.5.1
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jsenv/plugin-bundling",
|
|
3
|
-
"version": "2.5.
|
|
3
|
+
"version": "2.5.1",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -26,8 +26,8 @@
|
|
|
26
26
|
"dependencies": {
|
|
27
27
|
"@jsenv/log": "3.4.0",
|
|
28
28
|
"@jsenv/url-meta": "8.1.0",
|
|
29
|
-
"@jsenv/urls": "2.2.
|
|
30
|
-
"@jsenv/sourcemap": "1.2.
|
|
29
|
+
"@jsenv/urls": "2.2.1",
|
|
30
|
+
"@jsenv/sourcemap": "1.2.1",
|
|
31
31
|
"acorn-import-assertions": "1.9.0",
|
|
32
32
|
"lightningcss": "1.21.5",
|
|
33
33
|
"rollup": "3.27.0"
|
|
@@ -265,6 +265,11 @@ const rollupPluginJsenv = ({
|
|
|
265
265
|
}
|
|
266
266
|
}
|
|
267
267
|
|
|
268
|
+
const generatedToShareCode =
|
|
269
|
+
!rollupFileInfo.isEntry &&
|
|
270
|
+
!rollupFileInfo.isDynamicEntry &&
|
|
271
|
+
!rollupFileInfo.isImplicitEntry;
|
|
272
|
+
|
|
268
273
|
return {
|
|
269
274
|
originalUrl,
|
|
270
275
|
type: format === "esm" ? "js_module" : "common_js",
|
|
@@ -275,6 +280,7 @@ const rollupPluginJsenv = ({
|
|
|
275
280
|
rollupFileInfo.imports.length > 0 ||
|
|
276
281
|
rollupFileInfo.dynamicImports.length > 0,
|
|
277
282
|
isDynamicEntry: rollupFileInfo.isDynamicEntry,
|
|
283
|
+
generatedToShareCode,
|
|
278
284
|
},
|
|
279
285
|
sourceUrls,
|
|
280
286
|
contentType: "text/javascript",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { bundleCss } from "./css/css_bundling_lightning_css.js";
|
|
2
|
-
import { bundleJsClassic } from "./js_classic/bundle_js_classic.js";
|
|
2
|
+
// import { bundleJsClassic } from "./js_classic/bundle_js_classic.js";
|
|
3
3
|
import { bundleJsModules } from "./js_module/bundle_js_modules.js";
|
|
4
4
|
|
|
5
5
|
export const jsenvPluginBundling = ({
|
|
@@ -15,9 +15,9 @@ export const jsenvPluginBundling = ({
|
|
|
15
15
|
};
|
|
16
16
|
}
|
|
17
17
|
if (js_classic) {
|
|
18
|
-
bundle.js_classic = (jsClassicUrlInfos) => {
|
|
19
|
-
|
|
20
|
-
};
|
|
18
|
+
// bundle.js_classic = (jsClassicUrlInfos) => {
|
|
19
|
+
// return bundleJsClassic(jsClassicUrlInfos, js_classic);
|
|
20
|
+
// };
|
|
21
21
|
}
|
|
22
22
|
if (js_module) {
|
|
23
23
|
if (js_module === true) {
|