From b900b3b41195acc92742e427c59ff591316e1254 Mon Sep 17 00:00:00 2001 From: chilingling Date: Thu, 6 Jun 2024 19:10:29 -0700 Subject: [PATCH] feat: reexport canvas entry on design-core --- designer-demo/package.json | 1 - designer-demo/src/canvas.js | 2 +- packages/design-core/index.js | 1 + 3 files changed, 2 insertions(+), 2 deletions(-) diff --git a/designer-demo/package.json b/designer-demo/package.json index 8eb81f6d2..0c21c952a 100644 --- a/designer-demo/package.json +++ b/designer-demo/package.json @@ -11,7 +11,6 @@ "vue": "^3.4.21", "@opentiny/tiny-engine": "workspace:^", "@opentiny/tiny-engine-entry": "workspace:^", - "@opentiny/tiny-engine-canvas": "workspace:^", "@opentiny/tiny-engine-configurator": "workspace:*" }, "devDependencies": { diff --git a/designer-demo/src/canvas.js b/designer-demo/src/canvas.js index b867bf53f..7e5246662 100644 --- a/designer-demo/src/canvas.js +++ b/designer-demo/src/canvas.js @@ -10,6 +10,6 @@ * */ -import { createRender } from '@opentiny/tiny-engine-canvas' +import { createRender } from '@opentiny/tiny-engine' createRender(window.parent.TinyGlobalConfig) diff --git a/packages/design-core/index.js b/packages/design-core/index.js index 1c4e700fc..b0c5bcdab 100644 --- a/packages/design-core/index.js +++ b/packages/design-core/index.js @@ -1 +1,2 @@ export { init } from './src/init' +export { createRender } from '@opentiny/tiny-engine-canvas'