From dedaea720059be8dcbc6f3ff45cecb115e1a4f6a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8D=A3=E5=BD=AC?= Date: Tue, 21 Jul 2020 19:51:12 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9raxengine=E5=BC=95=E5=85=A5?= =?UTF-8?q?=E5=8C=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/rax-simulator-renderer/build.json | 7 ------- packages/rax-simulator-renderer/build.plugin.js | 5 +++++ packages/rax-simulator-renderer/src/renderer-view.tsx | 2 +- 3 files changed, 6 insertions(+), 8 deletions(-) diff --git a/packages/rax-simulator-renderer/build.json b/packages/rax-simulator-renderer/build.json index 84a86c4e6..703b8c7ce 100644 --- a/packages/rax-simulator-renderer/build.json +++ b/packages/rax-simulator-renderer/build.json @@ -1,12 +1,5 @@ { "plugins": [ - [ - "build-plugin-rax-component", - { - "type": "rax", - "targets": ["web"] - } - ], [ "build-plugin-component", { diff --git a/packages/rax-simulator-renderer/build.plugin.js b/packages/rax-simulator-renderer/build.plugin.js index e69de29bb..d613f1f56 100644 --- a/packages/rax-simulator-renderer/build.plugin.js +++ b/packages/rax-simulator-renderer/build.plugin.js @@ -0,0 +1,5 @@ +module.exports = ({ onGetWebpackConfig }) => { + onGetWebpackConfig((config) => { + config.performance.hints(false); + }); +}; diff --git a/packages/rax-simulator-renderer/src/renderer-view.tsx b/packages/rax-simulator-renderer/src/renderer-view.tsx index e838eccb7..7047c7d3b 100644 --- a/packages/rax-simulator-renderer/src/renderer-view.tsx +++ b/packages/rax-simulator-renderer/src/renderer-view.tsx @@ -1,6 +1,6 @@ import { Fragment, Component, createElement } from 'rax'; // import { observer } from './obx-rax/observer'; -import RaxEngine from '../../rax-render/src/index'; +import RaxEngine from '@ali/lowcode-rax-renderer'; import { SimulatorRenderer } from './renderer'; import { host } from './host';