@mandujs/core 0.18.3 → 0.18.5
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/package.json +8 -2
- package/src/bundler/build.ts +7 -16
- package/src/bundler/css.ts +332 -302
- package/src/bundler/dev.ts +34 -3
- package/src/config/mandu.ts +1 -1
- package/src/config/validate.ts +1 -1
- package/src/contract/registry.ts +591 -568
- package/src/resource/generator.ts +5 -4
- package/src/runtime/escape.ts +12 -0
- package/src/runtime/server.ts +1 -1
- package/src/runtime/ssr.ts +27 -10
- package/src/runtime/streaming-ssr.ts +7 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mandujs/core",
|
|
3
|
-
"version": "0.18.
|
|
3
|
+
"version": "0.18.5",
|
|
4
4
|
"description": "Mandu Framework Core - Spec, Generator, Guard, Runtime",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./src/index.ts",
|
|
@@ -44,7 +44,13 @@
|
|
|
44
44
|
},
|
|
45
45
|
"peerDependencies": {
|
|
46
46
|
"react": "^19.0.0",
|
|
47
|
-
"react-dom": "^19.0.0"
|
|
47
|
+
"react-dom": "^19.0.0",
|
|
48
|
+
"@tailwindcss/cli": ">=4.0.0"
|
|
49
|
+
},
|
|
50
|
+
"peerDependenciesMeta": {
|
|
51
|
+
"@tailwindcss/cli": {
|
|
52
|
+
"optional": true
|
|
53
|
+
}
|
|
48
54
|
},
|
|
49
55
|
"dependencies": {
|
|
50
56
|
"chokidar": "^5.0.0",
|
package/src/bundler/build.ts
CHANGED
|
@@ -482,10 +482,6 @@ function generateReactDOMShimSource(): string {
|
|
|
482
482
|
import ReactDOM, {
|
|
483
483
|
createPortal,
|
|
484
484
|
flushSync,
|
|
485
|
-
render,
|
|
486
|
-
unmountComponentAtNode,
|
|
487
|
-
findDOMNode,
|
|
488
|
-
hydrate,
|
|
489
485
|
version,
|
|
490
486
|
} from 'react-dom';
|
|
491
487
|
|
|
@@ -493,10 +489,6 @@ import ReactDOM, {
|
|
|
493
489
|
export {
|
|
494
490
|
createPortal,
|
|
495
491
|
flushSync,
|
|
496
|
-
render,
|
|
497
|
-
unmountComponentAtNode,
|
|
498
|
-
findDOMNode,
|
|
499
|
-
hydrate,
|
|
500
492
|
version,
|
|
501
493
|
};
|
|
502
494
|
|
|
@@ -1213,20 +1205,19 @@ export async function buildClientBundles(
|
|
|
1213
1205
|
};
|
|
1214
1206
|
}
|
|
1215
1207
|
|
|
1216
|
-
// 3. Runtime 번들 빌드
|
|
1217
|
-
const runtimeResult = await
|
|
1208
|
+
// 3-4. Runtime, Router, Vendor 번들 병렬 빌드 (서로 독립적)
|
|
1209
|
+
const [runtimeResult, routerResult, vendorResult] = await Promise.all([
|
|
1210
|
+
buildRuntime(outDir, options),
|
|
1211
|
+
buildRouterRuntime(outDir, options),
|
|
1212
|
+
buildVendorShims(outDir, options),
|
|
1213
|
+
]);
|
|
1214
|
+
|
|
1218
1215
|
if (!runtimeResult.success) {
|
|
1219
1216
|
errors.push(...runtimeResult.errors.map((e) => `[Runtime] ${e}`));
|
|
1220
1217
|
}
|
|
1221
|
-
|
|
1222
|
-
// 3.5. Client-side Router 런타임 빌드
|
|
1223
|
-
const routerResult = await buildRouterRuntime(outDir, options);
|
|
1224
1218
|
if (!routerResult.success) {
|
|
1225
1219
|
errors.push(...routerResult.errors.map((e) => `[Router] ${e}`));
|
|
1226
1220
|
}
|
|
1227
|
-
|
|
1228
|
-
// 4. Vendor shim 번들 빌드 (React, ReactDOM, ReactDOMClient)
|
|
1229
|
-
const vendorResult = await buildVendorShims(outDir, options);
|
|
1230
1221
|
if (!vendorResult.success) {
|
|
1231
1222
|
errors.push(...vendorResult.errors);
|
|
1232
1223
|
}
|