@jsenv/js-module-fallback 1.3.0 → 1.3.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/js-module-fallback",
3
- "version": "1.3.0",
3
+ "version": "1.3.1",
4
4
  "license": "MIT",
5
5
  "repository": {
6
6
  "type": "git",
@@ -36,6 +36,8 @@
36
36
  "@jsenv/urls": "2.2.0"
37
37
  },
38
38
  "scripts": {
39
- "eslint": "npx eslint . --ext=.js,.mjs,.cjs,.html"
39
+ "eslint": "npx eslint . --ext=.js,.mjs,.cjs,.html",
40
+ "build": "node ./scripts/build.mjs",
41
+ "prepublishOnly": "npm run build"
40
42
  }
41
43
  }
@@ -33,7 +33,7 @@ export const convertJsModuleToJsClassic = async ({
33
33
  * But to fix this issue once and for all there is babelPluginRelativeImports below
34
34
  */
35
35
  const transformImportSpecifier = (specifier) => {
36
- specifier = remapImportSpecifier(specifier);
36
+ specifier = remapImportSpecifier(specifier, inputUrl);
37
37
  if (!specifier.startsWith("file://")) {
38
38
  return null;
39
39
  }