@mandujs/core 0.4.1 → 0.4.2
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 +1 -1
- package/src/bundler/build.ts +3 -1
package/package.json
CHANGED
package/src/bundler/build.ts
CHANGED
|
@@ -220,12 +220,14 @@ export * as ReactDOMClient from 'react-dom/client';
|
|
|
220
220
|
* Island 엔트리 래퍼 생성
|
|
221
221
|
*/
|
|
222
222
|
function generateIslandEntry(routeId: string, clientModulePath: string): string {
|
|
223
|
+
// Windows 경로의 백슬래시를 슬래시로 변환 (JS escape 문제 방지)
|
|
224
|
+
const normalizedPath = clientModulePath.replace(/\\/g, "/");
|
|
223
225
|
return `
|
|
224
226
|
/**
|
|
225
227
|
* Mandu Island Entry: ${routeId} (Generated)
|
|
226
228
|
*/
|
|
227
229
|
|
|
228
|
-
import island from "${
|
|
230
|
+
import island from "${normalizedPath}";
|
|
229
231
|
import { registerIsland } from "./_runtime.js";
|
|
230
232
|
|
|
231
233
|
registerIsland("${routeId}", () => island);
|