Skip to content

Commit

Permalink
Set up webpack plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
zhuhaow committed Oct 4, 2022
1 parent 3179f83 commit cfc5d33
Show file tree
Hide file tree
Showing 6 changed files with 266 additions and 183 deletions.
14 changes: 10 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@
"ignext": "dist/index.js"
},
"scripts": {
"build:bin": "esbuild --bundle --platform=node --outfile=dist/index.js src/index.ts",
"build:server:": "esbuild --bundle --target=esnext --outfile=dist/server.js src/server/router.ts",
"build": "run-p build:*",
"build:plugin": "esbuild --bundle --platform=node --outfile=dist/index.js src/index.ts",
"build:loader": "esbuild --bundle --platform=node --outfile=dist/loaders/ignext-server-loader.js src/loaders/ignext-server-loader.ts",
"build": "rimraf dist && run-p build:*",
"typecheck": "tsc",
"lint": "xo",
"test": "jest",
Expand Down Expand Up @@ -37,6 +37,7 @@
"isomorphic-fetch": "^3.0.0",
"jest": "28.1.3",
"npm-run-all": "^4.1.5",
"rimraf": "^3.0.2",
"ts-jest": "28.0.8",
"ts-node": "10.9.1",
"typescript": "4.7.4",
Expand All @@ -49,9 +50,14 @@
"@types/react-dom": "^17.0.2 || ^18.0.0-0",
"next": "^12.3.0",
"react": "^17.0.2 || ^18.0.0-0",
"react-dom": "^17.0.2 || ^18.0.0-0"
"react-dom": "^17.0.2 || ^18.0.0-0",
"webpack": "^5.74.0"
},
"engines": {
"node": ">= 16"
},
"dependencies": {
"esbuild": "^0.15.10",
"execa": "^6.1.0"
}
}

0 comments on commit cfc5d33

Please sign in to comment.