diff --git a/compiler/src/process_worker.ts b/compiler/src/process_worker.ts index 56489fdbc973fb88ce49ea1d03d76495cc7dd729..65e3c66f5960e5766242b70595e03a20ffb7bc93 100644 --- a/compiler/src/process_worker.ts +++ b/compiler/src/process_worker.ts @@ -16,8 +16,5 @@ import { processSystemApi } from './validate_ui_syntax'; module.exports = function processWorker(source: string): string { - if (/workers/.test(this.resourcePath)) { - return processSystemApi(source); - } - return source; + return processSystemApi(source); };