From 731acb79e035072c7fd93832e9723988eafa484e Mon Sep 17 00:00:00 2001 From: Sylar Date: Tue, 8 Nov 2022 14:13:46 +0800 Subject: [PATCH] =?UTF-8?q?REPORT-83708=20=E5=90=8C=E6=AD=A5release?= =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- plugins/webpack-fui-worker-plugin/worker-loader.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugins/webpack-fui-worker-plugin/worker-loader.js b/plugins/webpack-fui-worker-plugin/worker-loader.js index c9dad87d5..d07756e01 100644 --- a/plugins/webpack-fui-worker-plugin/worker-loader.js +++ b/plugins/webpack-fui-worker-plugin/worker-loader.js @@ -116,8 +116,9 @@ function loader() { // 插入代码的转译和压缩由主构建配置的 babel/ts loader 处理, 不需要 worker-worker 来处理 // 添加 @ts-nocheck 避免 ts-check 报错 // 修复export const 下 const不会被转译的问题 + // safari浏览器下blob需指定type `// @ts-nocheck - export default window.URL.createObjectURL(new Blob([${JSON.stringify(compilation.assets[entry].source())}])); + export default window.URL.createObjectURL(new Blob([${JSON.stringify(compilation.assets[entry].source())}], { type: 'text/javascript' })); ` ) : callback(