Browse Source

REPORT-83708 fix: 创建Blob时指定类型

research/test
Sylar 2 years ago
parent
commit
9bc7821276
  1. 2
      plugins/webpack-fui-worker-plugin/worker-loader.js

2
plugins/webpack-fui-worker-plugin/worker-loader.js

@ -117,7 +117,7 @@ function loader() {
// 添加 @ts-nocheck 避免 ts-check 报错
// 修复export const 下 const不会被转译的问题
`// @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(

Loading…
Cancel
Save