@modern-js/runtime 2.58.1 → 2.58.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.
@@ -141,6 +141,12 @@ const runtimePlugin = (params) => ({
141
141
  "@modern-js/runtime/styled"
142
142
  ]
143
143
  },
144
+ bundlerChain: (chain) => {
145
+ chain.module.rule("modern-entry").test([
146
+ /\.js$/,
147
+ /\.jsx$/
148
+ ]).include.add(import_path.default.resolve(appDirectory, "node_modules", `.${metaName}`)).end().sideEffects(true);
149
+ },
144
150
  /**
145
151
  * Add IgnorePlugin to fix react-dom/client import error when use react17
146
152
  */
@@ -121,6 +121,12 @@ var runtimePlugin = function(params) {
121
121
  "@modern-js/runtime/styled"
122
122
  ]
123
123
  },
124
+ bundlerChain: function(chain) {
125
+ chain.module.rule("modern-entry").test([
126
+ /\.js$/,
127
+ /\.jsx$/
128
+ ]).include.add(path.resolve(appDirectory, "node_modules", ".".concat(metaName))).end().sideEffects(true);
129
+ },
124
130
  /**
125
131
  * Add IgnorePlugin to fix react-dom/client import error when use react17
126
132
  */
@@ -102,6 +102,12 @@ const runtimePlugin = (params) => ({
102
102
  "@modern-js/runtime/styled"
103
103
  ]
104
104
  },
105
+ bundlerChain: (chain) => {
106
+ chain.module.rule("modern-entry").test([
107
+ /\.js$/,
108
+ /\.jsx$/
109
+ ]).include.add(path.resolve(appDirectory, "node_modules", `.${metaName}`)).end().sideEffects(true);
110
+ },
105
111
  /**
106
112
  * Add IgnorePlugin to fix react-dom/client import error when use react17
107
113
  */
package/package.json CHANGED
@@ -15,7 +15,7 @@
15
15
  "modern",
16
16
  "modern.js"
17
17
  ],
18
- "version": "2.58.1",
18
+ "version": "2.58.2-alpha.0",
19
19
  "engines": {
20
20
  "node": ">=14.17.6"
21
21
  },
@@ -200,10 +200,10 @@
200
200
  "react-side-effect": "^2.1.1",
201
201
  "styled-components": "^5.3.1",
202
202
  "@modern-js/plugin": "2.58.1",
203
- "@modern-js/runtime-utils": "2.58.1",
204
203
  "@modern-js/plugin-data-loader": "2.58.1",
205
204
  "@modern-js/types": "2.58.1",
206
- "@modern-js/utils": "2.58.1"
205
+ "@modern-js/utils": "2.58.1",
206
+ "@modern-js/runtime-utils": "2.58.1"
207
207
  },
208
208
  "peerDependencies": {
209
209
  "react": ">=17",
@@ -234,8 +234,7 @@
234
234
  "sideEffects": false,
235
235
  "publishConfig": {
236
236
  "registry": "https://registry.npmjs.org/",
237
- "access": "public",
238
- "provenance": true
237
+ "access": "public"
239
238
  },
240
239
  "scripts": {
241
240
  "dev": "modern-lib build --watch",