Skip to content

Commit

Permalink
chore: replace rollup-plugin-esbuild with unplugin-oxc
Browse files Browse the repository at this point in the history
  • Loading branch information
sxzz committed Feb 10, 2025
1 parent 798c5fe commit fc6074e
Show file tree
Hide file tree
Showing 6 changed files with 389 additions and 138 deletions.
4 changes: 2 additions & 2 deletions examples/rollup/build.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import { rollup } from 'rollup'
import esbuild from 'rollup-plugin-esbuild'
import Oxc from 'unplugin-oxc/rollup'
import Vue from 'unplugin-vue/rollup'

const bundle = await rollup({
input: ['./src/main.ts'],
external: ['vue'],
plugins: [Vue(), esbuild({ format: 'esm' })],
plugins: [Vue(), Oxc()],
})
await bundle.write({
dir: 'dist',
Expand Down
1 change: 0 additions & 1 deletion examples/rollup/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
"devDependencies": {
"esbuild": "^0.24.2",
"rollup": "^4.34.4",
"rollup-plugin-esbuild": "^6.2.0",
"serve": "^14.2.4",
"unplugin-vue": "workspace:*"
}
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -84,11 +84,11 @@
"fast-glob": "^3.3.3",
"rimraf": "^6.0.1",
"rollup": "^4.34.4",
"rollup-plugin-esbuild": "^6.2.0",
"slash": "^5.1.0",
"source-map-js": "^1.2.1",
"tsdown": "^0.5.7",
"typescript": "^5.7.3",
"unplugin-oxc": "https://pkg.pr.new/unplugin/unplugin-oxc@61c8ffd",
"vitest": "^3.0.5",
"webpack": "^5.97.1"
},
Expand Down
Loading

0 comments on commit fc6074e

Please sign in to comment.