mirror of
https://github.com/openharmony/developtools_ace-js2bundle.git
synced 2026-07-21 06:05:27 -04:00
modify filter worker condition
Signed-off-by: zhangrengao <zhangrengao1@huawei.com> Change-Id: Ifd9ca09097e0eba2f3ed8791f2894ec7e738d43a
This commit is contained in:
@@ -66,7 +66,7 @@ class GenAbcPlugin {
|
||||
// choice *.js
|
||||
if (output && path.extname(key) === '.js') {
|
||||
let newContent = assets[key].source();
|
||||
if (key.search('./workers/') !== 0 && key !== 'commons.js' && key !== 'vendors.js') {
|
||||
if (key.search('workers/') !== 0 && key !== 'commons.js' && key !== 'vendors.js') {
|
||||
newContent = forward + newContent + last;
|
||||
}
|
||||
if (key === 'commons.js' || key === 'vendors.js') {
|
||||
|
||||
@@ -55,7 +55,7 @@ class GenBinPlugin {
|
||||
// choice *.js
|
||||
if (output && webpackPath && path.extname(key) === '.js') {
|
||||
let newContent = assets[key].source()
|
||||
if (key.search('./workers/') !== 0) {
|
||||
if (key.search('workers/') !== 0) {
|
||||
newContent = forward + newContent + last
|
||||
}
|
||||
const keyPath = key.replace(/\.js$/, firstFileEXT)
|
||||
|
||||
Reference in New Issue
Block a user