@modern-js/runtime 2.67.1 → 2.67.2-alpha.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.
@@ -36,6 +36,7 @@ module.exports = __toCommonJS(cli_exports);
36
36
  var import_path = __toESM(require("path"));
37
37
  var import_utils = require("@modern-js/utils");
38
38
  var import_esbuild = require("esbuild");
39
+ var import_esbuild_plugin_alias = __toESM(require("esbuild-plugin-alias"));
39
40
  var import_react = __toESM(require("react"));
40
41
  var import_server = __toESM(require("react-dom/server"));
41
42
  var import_DocumentContext = require("../DocumentContext");
@@ -118,6 +119,9 @@ const documentPlugin = () => ({
118
119
  },
119
120
  bundle: true,
120
121
  plugins: [
122
+ (0, import_esbuild_plugin_alias.default)({
123
+ ...tsConfig.compilerOptions.paths
124
+ }),
121
125
  {
122
126
  name: "make-all-packages-external",
123
127
  setup(build2) {
@@ -5,6 +5,7 @@ import { _ as _ts_generator } from "@swc/helpers/_/_ts_generator";
5
5
  import path from "path";
6
6
  import { fs, createDebugger, findExists } from "@modern-js/utils";
7
7
  import { build } from "esbuild";
8
+ import alias from "esbuild-plugin-alias";
8
9
  import React from "react";
9
10
  import ReactDomServer from "react-dom/server";
10
11
  import { DocumentContext } from "../DocumentContext";
@@ -122,6 +123,7 @@ var documentPlugin = function() {
122
123
  },
123
124
  bundle: true,
124
125
  plugins: [
126
+ alias(_object_spread({}, tsConfig.compilerOptions.paths)),
125
127
  {
126
128
  name: "make-all-packages-external",
127
129
  setup: function setup(build2) {
@@ -1,6 +1,7 @@
1
1
  import path from "path";
2
2
  import { fs, createDebugger, findExists } from "@modern-js/utils";
3
3
  import { build } from "esbuild";
4
+ import alias from "esbuild-plugin-alias";
4
5
  import React from "react";
5
6
  import ReactDomServer from "react-dom/server";
6
7
  import { DocumentContext } from "../DocumentContext";
@@ -83,6 +84,9 @@ const documentPlugin = () => ({
83
84
  },
84
85
  bundle: true,
85
86
  plugins: [
87
+ alias({
88
+ ...tsConfig.compilerOptions.paths
89
+ }),
86
90
  {
87
91
  name: "make-all-packages-external",
88
92
  setup(build2) {
package/package.json CHANGED
@@ -15,7 +15,7 @@
15
15
  "modern",
16
16
  "modern.js"
17
17
  ],
18
- "version": "2.67.1",
18
+ "version": "2.67.2-alpha.0",
19
19
  "engines": {
20
20
  "node": ">=14.17.6"
21
21
  },
@@ -205,19 +205,20 @@
205
205
  "cookie": "0.7.2",
206
206
  "es-module-lexer": "^1.1.0",
207
207
  "esbuild": "0.17.19",
208
+ "esbuild-plugin-alias": "0.2.1",
208
209
  "invariant": "^2.2.4",
209
210
  "isbot": "3.7.1",
210
211
  "react-helmet": "^6.1.0",
211
212
  "react-is": "^18",
212
213
  "react-side-effect": "^2.1.1",
213
214
  "styled-components": "^5.3.1",
214
- "@modern-js/plugin": "2.67.1",
215
215
  "@modern-js/plugin-data-loader": "2.67.1",
216
+ "@modern-js/plugin": "2.67.1",
216
217
  "@modern-js/plugin-v2": "2.67.1",
217
- "@modern-js/render": "2.67.1",
218
- "@modern-js/runtime-utils": "2.67.1",
219
218
  "@modern-js/types": "2.67.1",
220
- "@modern-js/utils": "2.67.1"
219
+ "@modern-js/render": "2.67.1",
220
+ "@modern-js/utils": "2.67.1",
221
+ "@modern-js/runtime-utils": "2.67.1"
221
222
  },
222
223
  "peerDependencies": {
223
224
  "react": ">=17",
@@ -242,8 +243,8 @@
242
243
  "typescript": "^5",
243
244
  "webpack": "^5.98.0",
244
245
  "@modern-js/app-tools": "2.67.1",
245
- "@scripts/build": "2.66.0",
246
- "@scripts/jest-config": "2.66.0"
246
+ "@scripts/jest-config": "2.66.0",
247
+ "@scripts/build": "2.66.0"
247
248
  },
248
249
  "sideEffects": false,
249
250
  "publishConfig": {