@modern-js/babel-plugin-module-resolver 2.58.2 → 2.59.0
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/cjs/normalizeOptions.js +1 -1
- package/dist/cjs/transformers/call.js +1 -1
- package/dist/esm/normalizeOptions.js +1 -1
- package/dist/esm/resolvePath.js +1 -1
- package/dist/esm/transformers/call.js +1 -1
- package/dist/esm-node/normalizeOptions.js +1 -1
- package/dist/esm-node/resolvePath.js +1 -1
- package/dist/esm-node/transformers/call.js +1 -1
- package/package.json +3 -3
|
@@ -32,9 +32,9 @@ __export(normalizeOptions_exports, {
|
|
|
32
32
|
module.exports = __toCommonJS(normalizeOptions_exports);
|
|
33
33
|
var import_fs = __toESM(require("fs"));
|
|
34
34
|
var import_path = __toESM(require("path"));
|
|
35
|
-
var import_reselect = require("reselect");
|
|
36
35
|
var import_glob = __toESM(require("glob"));
|
|
37
36
|
var import_pkg_up = __toESM(require("pkg-up"));
|
|
37
|
+
var import_reselect = require("reselect");
|
|
38
38
|
var import_utils = require("./utils");
|
|
39
39
|
const defaultExtensions = [
|
|
40
40
|
".js",
|
|
@@ -30,8 +30,8 @@ __export(call_exports, {
|
|
|
30
30
|
default: () => transformCall
|
|
31
31
|
});
|
|
32
32
|
module.exports = __toCommonJS(call_exports);
|
|
33
|
-
var import_utils = require("../utils");
|
|
34
33
|
var import_mapPath = __toESM(require("../mapPath"));
|
|
34
|
+
var import_utils = require("../utils");
|
|
35
35
|
function transformCall(nodePath, state) {
|
|
36
36
|
if (state.moduleResolverVisited.has(nodePath)) {
|
|
37
37
|
return;
|
|
@@ -2,9 +2,9 @@ import { _ as _sliced_to_array } from "@swc/helpers/_/_sliced_to_array";
|
|
|
2
2
|
import { _ as _to_consumable_array } from "@swc/helpers/_/_to_consumable_array";
|
|
3
3
|
import fs from "fs";
|
|
4
4
|
import path from "path";
|
|
5
|
-
import { createSelector } from "reselect";
|
|
6
5
|
import glob from "glob";
|
|
7
6
|
import pkgUp from "pkg-up";
|
|
7
|
+
import { createSelector } from "reselect";
|
|
8
8
|
import { escapeRegExp } from "./utils";
|
|
9
9
|
var defaultExtensions = [
|
|
10
10
|
".js",
|
package/dist/esm/resolvePath.js
CHANGED
|
@@ -3,7 +3,7 @@ import path from "path";
|
|
|
3
3
|
import { warn } from "./log";
|
|
4
4
|
import mapToRelative from "./mapToRelative";
|
|
5
5
|
import normalizeOptions from "./normalizeOptions";
|
|
6
|
-
import { nodeResolvePath, replaceExtension,
|
|
6
|
+
import { isRelativePath, nodeResolvePath, replaceExtension, toLocalPath, toPosixPath } from "./utils";
|
|
7
7
|
function getRelativePath(sourcePath, currentFile, absFileInRoot, opts) {
|
|
8
8
|
var realSourceFileExtension = path.extname(absFileInRoot);
|
|
9
9
|
var sourceFileExtension = path.extname(sourcePath);
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import fs from "fs";
|
|
2
2
|
import path from "path";
|
|
3
|
-
import { createSelector } from "reselect";
|
|
4
3
|
import glob from "glob";
|
|
5
4
|
import pkgUp from "pkg-up";
|
|
5
|
+
import { createSelector } from "reselect";
|
|
6
6
|
import { escapeRegExp } from "./utils";
|
|
7
7
|
const defaultExtensions = [
|
|
8
8
|
".js",
|
|
@@ -2,7 +2,7 @@ import path from "path";
|
|
|
2
2
|
import { warn } from "./log";
|
|
3
3
|
import mapToRelative from "./mapToRelative";
|
|
4
4
|
import normalizeOptions from "./normalizeOptions";
|
|
5
|
-
import { nodeResolvePath, replaceExtension,
|
|
5
|
+
import { isRelativePath, nodeResolvePath, replaceExtension, toLocalPath, toPosixPath } from "./utils";
|
|
6
6
|
function getRelativePath(sourcePath, currentFile, absFileInRoot, opts) {
|
|
7
7
|
const realSourceFileExtension = path.extname(absFileInRoot);
|
|
8
8
|
const sourceFileExtension = path.extname(sourcePath);
|
package/package.json
CHANGED
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
"modern",
|
|
16
16
|
"modern.js"
|
|
17
17
|
],
|
|
18
|
-
"version": "2.
|
|
18
|
+
"version": "2.59.0",
|
|
19
19
|
"jsnext:source": "./src/index.js",
|
|
20
20
|
"types": "./dist/types/index.d.ts",
|
|
21
21
|
"main": "./dist/cjs/index.js",
|
|
@@ -44,8 +44,8 @@
|
|
|
44
44
|
"@babel/preset-env": "^7.24.7",
|
|
45
45
|
"common-tags": "^1.8.2",
|
|
46
46
|
"jest": "^29",
|
|
47
|
-
"@scripts/build": "2.
|
|
48
|
-
"@scripts/jest-config": "2.
|
|
47
|
+
"@scripts/build": "2.59.0",
|
|
48
|
+
"@scripts/jest-config": "2.59.0"
|
|
49
49
|
},
|
|
50
50
|
"sideEffects": false,
|
|
51
51
|
"publishConfig": {
|