Skip to content

Commit

Permalink
build: use esbuild to speedup building vite package (#17299)
Browse files Browse the repository at this point in the history
  • Loading branch information
ArnaudBarre authored Jun 10, 2024
1 parent a826a08 commit 6db2515
Show file tree
Hide file tree
Showing 10 changed files with 258 additions and 239 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@
},
"devDependencies": {
"@eslint/js": "^9.4.0",
"@rollup/plugin-typescript": "^11.1.6",
"@types/babel__core": "^7.20.5",
"@types/babel__preset-env": "^7.9.6",
"@types/convert-source-map": "^2.0.3",
Expand Down Expand Up @@ -74,6 +73,7 @@
"prettier": "3.3.1",
"rimraf": "^5.0.7",
"rollup": "^4.13.0",
"rollup-plugin-esbuild": "^6.1.1",
"simple-git-hooks": "^2.11.1",
"tslib": "^2.6.3",
"tsx": "^4.15.1",
Expand Down
7 changes: 3 additions & 4 deletions packages/vite/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -71,12 +71,12 @@
"homepage": "https://vitejs.dev",
"funding": "https://github.com/vitejs/vite?sponsor=1",
"scripts": {
"dev": "rimraf dist && pnpm run build-bundle -w",
"dev": "tsx scripts/dev.ts",
"build": "rimraf dist && run-s build-bundle build-types",
"build-bundle": "rollup --config rollup.config.ts --configPlugin typescript",
"build-bundle": "rollup --config rollup.config.ts --configPlugin esbuild",
"build-types": "run-s build-types-temp build-types-roll build-types-check",
"build-types-temp": "tsc --emitDeclarationOnly --outDir temp -p src/node",
"build-types-roll": "rollup --config rollup.dts.config.ts --configPlugin typescript && rimraf temp",
"build-types-roll": "rollup --config rollup.dts.config.ts --configPlugin esbuild && rimraf temp",
"build-types-check": "tsc --project tsconfig.check.json",
"typecheck": "tsc --noEmit",
"lint": "eslint --cache --ext .ts src/**",
Expand All @@ -102,7 +102,6 @@
"@rollup/plugin-dynamic-import-vars": "^2.1.2",
"@rollup/plugin-json": "^6.1.0",
"@rollup/plugin-node-resolve": "15.2.3",
"@rollup/plugin-typescript": "^11.1.6",
"@rollup/pluginutils": "^5.1.0",
"@types/escape-html": "^1.0.4",
"@types/pnpapi": "^0.0.5",
Expand Down
Loading

0 comments on commit 6db2515

Please sign in to comment.