@modern-js/module-tools 2.63.6 → 2.64.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.
@@ -194,7 +194,7 @@ const redirect = {
194
194
  return result;
195
195
  }, {});
196
196
  try {
197
- const sgNode = import_napi.js.parse(code).root();
197
+ const sgNode = (0, import_napi.parse)(import_napi.Lang.JavaScript, code).root();
198
198
  const matcher = {
199
199
  rule: {
200
200
  kind: "string_fragment",
package/dist/utils/dts.js CHANGED
@@ -119,7 +119,7 @@ const processDtsFilesAfterTsc = async (config) => {
119
119
  const str = new import_magic_string.default(code);
120
120
  const originalFilePath = (0, import_path.resolve)(absoluteBaseUrl, (userTsconfig === null || userTsconfig === void 0 ? void 0 : (_userTsconfig_compilerOptions = userTsconfig.compilerOptions) === null || _userTsconfig_compilerOptions === void 0 ? void 0 : _userTsconfig_compilerOptions.rootDir) || "src", (0, import_path.relative)(distPath, filePath));
121
121
  try {
122
- const sgNode = import_napi.js.parse(code).root();
122
+ const sgNode = (0, import_napi.parse)(import_napi.Lang.JavaScript, code).root();
123
123
  const matcher = {
124
124
  rule: {
125
125
  kind: "string_fragment",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@modern-js/module-tools",
3
- "version": "2.63.6",
3
+ "version": "2.64.0",
4
4
  "description": "Simple, powerful, high-performance modern npm package development solution.",
5
5
  "keywords": [
6
6
  "modern",
@@ -51,11 +51,11 @@
51
51
  },
52
52
  "dependencies": {
53
53
  "@ampproject/remapping": "^2.2.1",
54
- "@ast-grep/napi": "0.16.0",
54
+ "@ast-grep/napi": "0.33.1",
55
55
  "@babel/core": "^7.26.0",
56
56
  "@babel/types": "^7.26.0",
57
57
  "@modern-js/swc-plugins": "0.6.11",
58
- "@rollup/pluginutils": "4.1.1",
58
+ "@rollup/pluginutils": "4.2.1",
59
59
  "@swc/helpers": "0.5.13",
60
60
  "convert-source-map": "1.8.0",
61
61
  "enhanced-resolve": "5.17.1",
@@ -70,21 +70,21 @@
70
70
  "tapable": "2.2.1",
71
71
  "terser": "^5.31.1",
72
72
  "tsconfig-paths-webpack-plugin": "4.1.0",
73
- "@modern-js/core": "2.63.6",
74
- "@modern-js/plugin": "2.63.6",
75
- "@modern-js/plugin-changeset": "2.63.6",
76
- "@modern-js/plugin-i18n": "2.63.6",
77
- "@modern-js/types": "2.63.6",
78
- "@modern-js/utils": "2.63.6"
73
+ "@modern-js/core": "2.64.0",
74
+ "@modern-js/plugin-changeset": "2.64.0",
75
+ "@modern-js/plugin": "2.64.0",
76
+ "@modern-js/plugin-i18n": "2.64.0",
77
+ "@modern-js/types": "2.64.0",
78
+ "@modern-js/utils": "2.64.0"
79
79
  },
80
80
  "devDependencies": {
81
81
  "@rsbuild/core": "1.1.13",
82
82
  "@types/convert-source-map": "1.5.2",
83
83
  "@types/node": "^14",
84
84
  "typescript": "^5",
85
- "@modern-js/self": "npm:@modern-js/module-tools@2.63.6",
86
- "@scripts/vitest-config": "2.63.6",
87
- "@scripts/build": "2.63.6"
85
+ "@modern-js/self": "npm:@modern-js/module-tools@2.64.0",
86
+ "@scripts/build": "2.64.0",
87
+ "@scripts/vitest-config": "2.64.0"
88
88
  },
89
89
  "peerDependencies": {
90
90
  "typescript": "^4 || ^5"