@modern-js/runtime 1.3.2 → 1.3.4
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 +26 -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 +8 -8
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,31 @@
|
|
|
1
1
|
# @modern-js/runtime
|
|
2
2
|
|
|
3
|
+
## 1.3.4
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 3050acc: add styled-components alias
|
|
8
|
+
- Updated dependencies [77a8e9e]
|
|
9
|
+
- Updated dependencies [43b2224]
|
|
10
|
+
- Updated dependencies [dc37349]
|
|
11
|
+
- Updated dependencies [77a8e9e]
|
|
12
|
+
- Updated dependencies [f29e9ba]
|
|
13
|
+
- Updated dependencies [2dacc89]
|
|
14
|
+
- Updated dependencies [a90bc96]
|
|
15
|
+
- @modern-js/bff-runtime@1.3.0
|
|
16
|
+
- @modern-js/plugin-ssr@1.4.6
|
|
17
|
+
- @modern-js/runtime-core@1.5.2
|
|
18
|
+
- @modern-js/plugin-router@1.2.16
|
|
19
|
+
- @modern-js/create-request@1.3.0
|
|
20
|
+
- @modern-js/utils@1.7.9
|
|
21
|
+
- @modern-js/plugin-state@1.2.10
|
|
22
|
+
|
|
23
|
+
## 1.3.3
|
|
24
|
+
|
|
25
|
+
### Patch Changes
|
|
26
|
+
|
|
27
|
+
- 8d0eb81f5: add styled-components alias
|
|
28
|
+
|
|
3
29
|
## 1.3.2
|
|
4
30
|
|
|
5
31
|
### Patch Changes
|
|
@@ -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.4",
|
|
15
15
|
"jsnext:source": "./src/index.ts",
|
|
16
16
|
"types": "./type.d.ts",
|
|
17
17
|
"main": "./dist/js/node/index.js",
|
|
@@ -103,13 +103,13 @@
|
|
|
103
103
|
},
|
|
104
104
|
"dependencies": {
|
|
105
105
|
"@babel/runtime": "^7.18.0",
|
|
106
|
-
"@modern-js/plugin-router": "^1.2.
|
|
107
|
-
"@modern-js/plugin-ssr": "^1.4.
|
|
106
|
+
"@modern-js/plugin-router": "^1.2.16",
|
|
107
|
+
"@modern-js/plugin-ssr": "^1.4.6",
|
|
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.
|
|
112
|
-
"@modern-js/create-request": "^1.
|
|
109
|
+
"@modern-js/runtime-core": "^1.5.2",
|
|
110
|
+
"@modern-js/utils": "^1.7.9",
|
|
111
|
+
"@modern-js/bff-runtime": "^1.3.0",
|
|
112
|
+
"@modern-js/create-request": "^1.3.0",
|
|
113
113
|
"@loadable/component": "^5.15.0",
|
|
114
114
|
"@types/loadable__component": "^5.13.4",
|
|
115
115
|
"@types/react-helmet": "^6.1.2",
|
|
@@ -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.2",
|
|
122
122
|
"@scripts/build": "0.0.0",
|
|
123
123
|
"@types/jest": "^27",
|
|
124
124
|
"@types/node": "^14",
|