@jsenv/plugin-bundling 2.1.9 → 2.1.11

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 ADDED
File without changes
package/package.json CHANGED
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "name": "@jsenv/plugin-bundling",
3
- "version": "2.1.9",
3
+ "version": "2.1.11",
4
4
  "license": "MIT",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "https://github.com/jsenv/core",
8
- "directory": "packages/jsenv-plugin-bundling"
8
+ "directory": "packages/related/plugin-bundling"
9
9
  },
10
10
  "publishConfig": {
11
11
  "access": "public"
@@ -24,19 +24,15 @@
24
24
  "test": "node --conditions=development ./scripts/test.mjs"
25
25
  },
26
26
  "dependencies": {
27
- "@jsenv/babel-plugins": "1.1.6",
28
27
  "@jsenv/log": "3.3.5",
29
28
  "@jsenv/url-meta": "8.1.0",
30
29
  "@jsenv/urls": "2.0.0",
31
30
  "@jsenv/sourcemap": "1.0.10",
32
31
  "acorn-import-assertions": "1.9.0",
33
32
  "lightningcss": "1.20.0",
34
- "rollup": "3.21.8"
33
+ "rollup": "3.23.0"
35
34
  },
36
35
  "peerDependencies": {
37
36
  "@jsenv/core": "*"
38
- },
39
- "devDependencies": {
40
- "@jsenv/core": "../../"
41
37
  }
42
38
  }
@@ -1,10 +1,7 @@
1
- import { pathToFileURL } from "node:url";
2
-
3
1
  import { URL_META } from "@jsenv/url-meta";
4
2
  import { isFileSystemPath } from "@jsenv/urls";
5
3
  import { createDetailedMessage } from "@jsenv/log";
6
4
  import { sourcemapConverter } from "@jsenv/sourcemap";
7
- import { globalThisClientFileUrl } from "@jsenv/core/src/plugins/transpilation/babel/global_this/babel_plugin_global_this_as_jsenv_import.js";
8
5
 
9
6
  import { fileUrlConverter } from "../file_url_converter.js";
10
7
 
@@ -85,12 +82,6 @@ export const bundleJsModules = async ({
85
82
  if (warning.code === "CIRCULAR_DEPENDENCY") {
86
83
  return;
87
84
  }
88
- if (warning.code === "THIS_IS_UNDEFINED") {
89
- const fileUrl = pathToFileURL(warning.id).href;
90
- if (fileUrl === globalThisClientFileUrl) {
91
- return;
92
- }
93
- }
94
85
  if (warning.code === "EVAL") {
95
86
  // ideally we should disable only for jsenv files
96
87
  return;
@@ -338,7 +329,7 @@ const rollupPluginJsenv = ({
338
329
  // happen when excluded by referenceAnalysis.include
339
330
  return { id: url, external: true };
340
331
  }
341
- if (!urlInfo.shouldHandle) {
332
+ if (urlInfo.url.startsWith("ignore:")) {
342
333
  return { id: url, external: true };
343
334
  }
344
335
  const filePath = fileUrlConverter.asFilePath(url);