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,8 +1,6 @@
{
"dependencies": {
"path-to-regexp": "^6.2.1"
},
"name": "handlers.js",
"description": "Handlers.js is a unified and lightweight web application framework for multiple platforms.",
"version": "0.0.1",
"main": "index.ts",
"author": "186526 <i@186526.xyz>",
@ -17,9 +15,27 @@
"cross-platform",
"unified"
],
"devDependencies": {
"@types/node": "^18.0.0",
"typescript": "^4.7.4"
"dependencies": {
"path-to-regexp": "^6.2.1"
},
"type": "module"
}
"devDependencies": {
"@cloudflare/workers-types": "^3.13.0",
"@types/node": "^18.0.0",
"@webpack-cli/generators": "^2.5.0",
"prettier": "^2.7.1",
"ts-loader": "^9.3.1",
"typescript": "^4.7.4",
"webpack": "^5.73.0",
"webpack-cli": "^4.10.0"
},
"sideEffects": false,
"scripts": {
"build": "yarn build:node && yarn build:webworker",
"build:node": "TARGET=node webpack",
"build:webworker": "TARGET=webworker webpack",
"watch": "webpack --watch"
},
"engines": {
"node": ">=14.0.0"
}
}