@moneko/core 3.0.0-beta.33 → 3.0.0-beta.34
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/lib/common.js +19 -0
- package/lib/swcrc.js +4 -0
- package/package.json +2 -1
- package/typings/global.d.ts +8 -0
package/lib/common.js
CHANGED
|
@@ -98,6 +98,25 @@ const defaultConfig = {
|
|
|
98
98
|
jsxImportSource: jsxImportSource,
|
|
99
99
|
remarkPlugins: [],
|
|
100
100
|
rehypePlugins: []
|
|
101
|
+
},
|
|
102
|
+
jsxDomExpressions: {
|
|
103
|
+
moduleName: 'solid-js/web',
|
|
104
|
+
builtIns: [
|
|
105
|
+
'For',
|
|
106
|
+
'Show',
|
|
107
|
+
'Switch',
|
|
108
|
+
'Match',
|
|
109
|
+
'Suspense',
|
|
110
|
+
'SuspenseList',
|
|
111
|
+
'Portal',
|
|
112
|
+
'Index',
|
|
113
|
+
'Dynamic',
|
|
114
|
+
'ErrorBoundary'
|
|
115
|
+
],
|
|
116
|
+
contextToCustomElements: true,
|
|
117
|
+
wrapConditionals: true,
|
|
118
|
+
generate: 'dom',
|
|
119
|
+
hydratable: false
|
|
101
120
|
}
|
|
102
121
|
};
|
|
103
122
|
export const log = (msg)=>{
|
package/lib/swcrc.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@moneko/core",
|
|
3
|
-
"version": "3.0.0-beta.
|
|
3
|
+
"version": "3.0.0-beta.34",
|
|
4
4
|
"description": "core",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"type": "module",
|
|
@@ -13,6 +13,7 @@
|
|
|
13
13
|
"license": "MIT",
|
|
14
14
|
"dependencies": {
|
|
15
15
|
"@mdx-js/loader": "2.3.0",
|
|
16
|
+
"@moneko/jsx-dom-expressions": "0.1.0",
|
|
16
17
|
"@soda/friendly-errors-webpack-plugin": "1.8.1",
|
|
17
18
|
"@swc/core": "1.3.62",
|
|
18
19
|
"@swc/css": "0.0.20",
|
package/typings/global.d.ts
CHANGED
|
@@ -264,6 +264,14 @@ export declare type ConfigType<T extends 'tsc' | 'swc' = 'swc'> = {
|
|
|
264
264
|
/** 📦 打包完成 */
|
|
265
265
|
done?: () => void;
|
|
266
266
|
mdx?: MDXOptions;
|
|
267
|
+
jsxDomExpressions?: {
|
|
268
|
+
moduleName?: string;
|
|
269
|
+
builtIns?: string[];
|
|
270
|
+
contextToCustomElements?: boolean;
|
|
271
|
+
wrapConditionals?: boolean;
|
|
272
|
+
generate?: 'ssr' | 'dom';
|
|
273
|
+
hydratable?: boolean;
|
|
274
|
+
};
|
|
267
275
|
};
|
|
268
276
|
export declare interface ModuleFederationOption {
|
|
269
277
|
/** 模块名称,唯一性,不能重名 */
|