@modern-js/runtime 1.3.2 → 1.3.3
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/CHANGELOG.md +6 -0
- package/dist/js/modern/cli/index.js +10 -1
- package/dist/js/node/cli/index.js +10 -1
- package/dist/js/treeshaking/cli/index.js +10 -1
- package/package.json +5 -5
package/CHANGELOG.md
CHANGED
|
@@ -18,7 +18,16 @@ export default (() => ({
|
|
|
18
18
|
runtimeByEntries: {},
|
|
19
19
|
source: {
|
|
20
20
|
alias: {
|
|
21
|
-
'@modern-js/runtime$': runtimeExportsUtils.getPath()
|
|
21
|
+
'@modern-js/runtime$': runtimeExportsUtils.getPath(),
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* twin.macro inserts styled-components into the code during the compilation process
|
|
25
|
+
* But it will not be installed under the user project.
|
|
26
|
+
* So need to add alias
|
|
27
|
+
*/
|
|
28
|
+
'styled-components': require.resolve('styled-components', {
|
|
29
|
+
paths: [require.resolve('@modern-js/runtime-core')]
|
|
30
|
+
})
|
|
22
31
|
}
|
|
23
32
|
}
|
|
24
33
|
};
|
|
@@ -32,7 +32,16 @@ var _default = () => ({
|
|
|
32
32
|
runtimeByEntries: {},
|
|
33
33
|
source: {
|
|
34
34
|
alias: {
|
|
35
|
-
'@modern-js/runtime$': runtimeExportsUtils.getPath()
|
|
35
|
+
'@modern-js/runtime$': runtimeExportsUtils.getPath(),
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* twin.macro inserts styled-components into the code during the compilation process
|
|
39
|
+
* But it will not be installed under the user project.
|
|
40
|
+
* So need to add alias
|
|
41
|
+
*/
|
|
42
|
+
'styled-components': require.resolve('styled-components', {
|
|
43
|
+
paths: [require.resolve('@modern-js/runtime-core')]
|
|
44
|
+
})
|
|
36
45
|
}
|
|
37
46
|
}
|
|
38
47
|
};
|
|
@@ -21,7 +21,16 @@ export default (function () {
|
|
|
21
21
|
runtimeByEntries: {},
|
|
22
22
|
source: {
|
|
23
23
|
alias: {
|
|
24
|
-
'@modern-js/runtime$': runtimeExportsUtils.getPath()
|
|
24
|
+
'@modern-js/runtime$': runtimeExportsUtils.getPath(),
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* twin.macro inserts styled-components into the code during the compilation process
|
|
28
|
+
* But it will not be installed under the user project.
|
|
29
|
+
* So need to add alias
|
|
30
|
+
*/
|
|
31
|
+
'styled-components': require.resolve('styled-components', {
|
|
32
|
+
paths: [require.resolve('@modern-js/runtime-core')]
|
|
33
|
+
})
|
|
25
34
|
}
|
|
26
35
|
}
|
|
27
36
|
};
|
package/package.json
CHANGED
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"modern",
|
|
12
12
|
"modern.js"
|
|
13
13
|
],
|
|
14
|
-
"version": "1.3.
|
|
14
|
+
"version": "1.3.3",
|
|
15
15
|
"jsnext:source": "./src/index.ts",
|
|
16
16
|
"types": "./type.d.ts",
|
|
17
17
|
"main": "./dist/js/node/index.js",
|
|
@@ -106,9 +106,9 @@
|
|
|
106
106
|
"@modern-js/plugin-router": "^1.2.15",
|
|
107
107
|
"@modern-js/plugin-ssr": "^1.4.5",
|
|
108
108
|
"@modern-js/plugin-state": "^1.2.10",
|
|
109
|
-
"@modern-js/runtime-core": "^1.
|
|
110
|
-
"@modern-js/utils": "^1.7.
|
|
111
|
-
"@modern-js/bff-runtime": "^1.2.
|
|
109
|
+
"@modern-js/runtime-core": "^1.5.1",
|
|
110
|
+
"@modern-js/utils": "^1.7.8",
|
|
111
|
+
"@modern-js/bff-runtime": "^1.2.5",
|
|
112
112
|
"@modern-js/create-request": "^1.2.11",
|
|
113
113
|
"@loadable/component": "^5.15.0",
|
|
114
114
|
"@types/loadable__component": "^5.13.4",
|
|
@@ -118,7 +118,7 @@
|
|
|
118
118
|
"react-is": "^17"
|
|
119
119
|
},
|
|
120
120
|
"devDependencies": {
|
|
121
|
-
"@modern-js/core": "1.
|
|
121
|
+
"@modern-js/core": "1.12.1",
|
|
122
122
|
"@scripts/build": "0.0.0",
|
|
123
123
|
"@types/jest": "^27",
|
|
124
124
|
"@types/node": "^14",
|