mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-17 09:36:08 +08:00
ui: fix worker types
This commit is contained in:
1 parent
ccb380852f
commit
fd8c0c373b
3 files changed
+10
-2
No files matched your search
@@ -1,6 +1,9 @@
|
||||
const fs = require('fs');
|
||||
const path = require('path');
|
||||
|
||||
const dir = path.dirname(path.dirname(require.resolve('@types/node/package.json')));
|
||||
const files = fs.readdirSync(dir);
|
||||
|
||||
const compilerOptionsBase = {
|
||||
target: 'es2020',
|
||||
module: 'commonjs',
|
||||
@@ -14,6 +17,7 @@ const compilerOptionsBase = {
|
||||
// emitDecoratorMetadata: true,
|
||||
noEmit: true,
|
||||
incremental: true,
|
||||
types: files.filter((i) => !['sharedworker', 'serviceworker'].includes(i)),
|
||||
};
|
||||
const config = {
|
||||
compilerOptions: compilerOptionsBase,
|
||||
|
||||
Reference in new issue
Block a user