mirror of
https://github.com/186526/handlers.js
synced 2024-10-13 00:29:43 +00:00
Add Web Worker Platform Adapter && Fix module path bug
This commit is contained in:
32
package.json
32
package.json
@ -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"
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user