Add Web Worker Platform Adapter && Fix module path bug

This commit is contained in:
2022-06-29 20:00:52 +00:00
committed by GitHub
parent bdbb5deda9
commit b3552cb6a2
17 changed files with 4765 additions and 56 deletions

View File

@ -1,11 +1,13 @@
{
"compilerOptions": {
"target": "esnext",
"module": "esnext",
"module": "commonjs",
"lib": [
"ESNext",
"WebWorker",
"DOM"
],
"types": [
"@cloudflare/workers-types",
"@types/node",
],
"skipLibCheck": true,
"sourceMap": true,
@ -16,8 +18,8 @@
"strictNullChecks": true,
"strictFunctionTypes": true,
"noImplicitThis": true,
"noUnusedLocals": true,
"noUnusedParameters": true,
"noUnusedLocals": false,
"noUnusedParameters": false,
"noImplicitReturns": true,
"noFallthroughCasesInSwitch": true,
"allowSyntheticDefaultImports": true,
@ -25,13 +27,19 @@
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"resolveJsonModule": true,
"baseUrl": "."
"baseUrl": ".",
"plugins": [
{
"transform": "@zerollup/ts-transform-paths",
}
],
},
"exclude": [
"node_modules"
],
"include": [
"index.ts",
"src/**/*.ts"
]
"src/**/*.ts",
"demo/**/*.ts",
],
}