fix: 修复构建错误和缺失依赖
This commit is contained in:
@@ -1116,6 +1116,10 @@ export class WebBuildPipeline implements IBuildPipeline {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Check if WASM engine is available
|
||||||
|
const esEngineDir = `${context.outputDir}/libs/es-engine`;
|
||||||
|
const hasWasm = await fs.pathExists(esEngineDir);
|
||||||
|
|
||||||
const useBundledModules = webConfig.bundleModules !== false;
|
const useBundledModules = webConfig.bundleModules !== false;
|
||||||
let importMapScript = '';
|
let importMapScript = '';
|
||||||
let pluginImportCode = '';
|
let pluginImportCode = '';
|
||||||
|
|||||||
@@ -30,6 +30,7 @@
|
|||||||
"react": "^18.3.1",
|
"react": "^18.3.1",
|
||||||
"@types/react": "^18.2.0",
|
"@types/react": "^18.2.0",
|
||||||
"lucide-react": "^0.453.0",
|
"lucide-react": "^0.453.0",
|
||||||
|
"zustand": "^5.0.8",
|
||||||
"rimraf": "^5.0.5",
|
"rimraf": "^5.0.5",
|
||||||
"tsup": "^8.0.0",
|
"tsup": "^8.0.0",
|
||||||
"typescript": "^5.3.3"
|
"typescript": "^5.3.3"
|
||||||
|
|||||||
@@ -594,12 +594,9 @@ export const TilemapEditorPanel: React.FC<TilemapEditorPanelProps> = ({ messageH
|
|||||||
entityId,
|
entityId,
|
||||||
pendingFilePath,
|
pendingFilePath,
|
||||||
currentFilePath,
|
currentFilePath,
|
||||||
currentTool: _currentTool,
|
|
||||||
zoom,
|
zoom,
|
||||||
showGrid,
|
showGrid,
|
||||||
showCollision: _showCollision,
|
showCollision,
|
||||||
editingCollision: _editingCollision,
|
|
||||||
tileWidth: _tileWidth,
|
|
||||||
tileHeight,
|
tileHeight,
|
||||||
tilesetImageUrl,
|
tilesetImageUrl,
|
||||||
tilesetColumns,
|
tilesetColumns,
|
||||||
@@ -607,11 +604,9 @@ export const TilemapEditorPanel: React.FC<TilemapEditorPanelProps> = ({ messageH
|
|||||||
setEntityId,
|
setEntityId,
|
||||||
setPendingFilePath,
|
setPendingFilePath,
|
||||||
setCurrentFilePath,
|
setCurrentFilePath,
|
||||||
setCurrentTool: _setCurrentTool,
|
|
||||||
setZoom,
|
setZoom,
|
||||||
setShowGrid,
|
setShowGrid,
|
||||||
setShowCollision,
|
setShowCollision,
|
||||||
setEditingCollision: _setEditingCollision,
|
|
||||||
setPan,
|
setPan,
|
||||||
setTileset,
|
setTileset,
|
||||||
setLayers,
|
setLayers,
|
||||||
|
|||||||
3
pnpm-lock.yaml
generated
3
pnpm-lock.yaml
generated
@@ -1276,6 +1276,9 @@ importers:
|
|||||||
typescript:
|
typescript:
|
||||||
specifier: ^5.3.3
|
specifier: ^5.3.3
|
||||||
version: 5.9.3
|
version: 5.9.3
|
||||||
|
zustand:
|
||||||
|
specifier: ^5.0.8
|
||||||
|
version: 5.0.8(@types/react@18.3.27)(react@18.3.1)(use-sync-external-store@1.6.0(react@18.3.1))
|
||||||
|
|
||||||
packages/sprite:
|
packages/sprite:
|
||||||
devDependencies:
|
devDependencies:
|
||||||
|
|||||||
Reference in New Issue
Block a user