@jsenv/plugin-transpilation 1.4.84 → 1.4.86

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-transpilation",
3
- "version": "1.4.84",
3
+ "version": "1.4.86",
4
4
  "description": "TODO",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -51,11 +51,11 @@
51
51
  "@babel/plugin-transform-template-literals": "7.25.9",
52
52
  "@babel/plugin-transform-typeof-symbol": "7.25.9",
53
53
  "@babel/plugin-transform-unicode-regex": "7.25.9",
54
- "@jsenv/ast": "6.3.5",
55
- "@jsenv/js-module-fallback": "1.3.49",
54
+ "@jsenv/ast": "6.3.7",
55
+ "@jsenv/js-module-fallback": "1.3.51",
56
56
  "@jsenv/runtime-compat": "1.3.1",
57
57
  "babel-plugin-transform-async-to-promises": "0.8.18",
58
58
  "construct-style-sheets-polyfill": "3.1.0",
59
- "lightningcss": "1.28.1"
59
+ "lightningcss": "1.28.2"
60
60
  }
61
61
  }
@@ -1,4 +1,4 @@
1
- import { fileURLToPath } from "node:url";
1
+ import { urlToFileSystemPath } from "@jsenv/urls";
2
2
 
3
3
  export const applyCssTranspilation = async ({
4
4
  input,
@@ -9,7 +9,7 @@ export const applyCssTranspilation = async ({
9
9
  const { transform } = await import("lightningcss");
10
10
  const targets = runtimeCompatToTargets(runtimeCompat);
11
11
  const { code, map } = transform({
12
- filename: fileURLToPath(inputUrl),
12
+ filename: urlToFileSystemPath(inputUrl),
13
13
  code: Buffer.from(input),
14
14
  targets,
15
15
  minify: false,
@@ -103,7 +103,7 @@ export const jsenvPluginImportAttributes = ({
103
103
  const originalUrlInfo = urlInfo.getWithoutSearchParam(
104
104
  `as_${type}_module`,
105
105
  {
106
- expectedType: "json",
106
+ expectedType: type,
107
107
  },
108
108
  );
109
109
  if (!originalUrlInfo) {