From 4505e3d13023111d1083371ee1a46dba8c13c7b4 Mon Sep 17 00:00:00 2001 From: ccloli <8115912+ccloli@users.noreply.github.com> Date: Tue, 28 Nov 2023 16:14:25 +0800 Subject: [PATCH] feat: enable `javascriptEnabled` for less to make antd happy --- packages/app/src/sandbox/eval/transpilers/less/less-worker.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/app/src/sandbox/eval/transpilers/less/less-worker.ts b/packages/app/src/sandbox/eval/transpilers/less/less-worker.ts index a05c6f68a7f..ef6827fbb83 100644 --- a/packages/app/src/sandbox/eval/transpilers/less/less-worker.ts +++ b/packages/app/src/sandbox/eval/transpilers/less/less-worker.ts @@ -12,6 +12,7 @@ export interface LessLibrary { // @ts-ignore self.less = { env: 'development', + javascriptEnabled: true, }; // Stub window for less....