Skip to content

Rolldown-Vite #84

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 112 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
112 commits
Select commit Hold shift + click to select a range
2716e1e
chore: add rolldown as dependency
sapphi-red Mar 7, 2025
48c6010
feat: use rolldown in the dep optimizer
sapphi-red Mar 7, 2025
e66d358
feat: convert `optimizeDep.esbuildOptions` to `optimizeDep.rollupOpti…
sapphi-red Mar 7, 2025
88077db
feat: use rolldown to bundle config
sapphi-red Mar 7, 2025
aa4739a
feat: use `parseAst` from rolldown
sapphi-red Mar 7, 2025
47a4d50
feat: use rolldown for build
sapphi-red Mar 7, 2025
e8cbd79
feat: use rolldown builtin OXC minifier by default
sapphi-red Mar 7, 2025
393d1bc
feat: use OXC for transform
sapphi-red Mar 7, 2025
af62e81
feat: use OXC for define plugin
sapphi-red Mar 7, 2025
7572013
feat: use lightningcss by default for cssMinify
sapphi-red Mar 7, 2025
7f44e70
refactor: make esbuild optional peer dependency
sapphi-red Mar 7, 2025
95f3ce6
perf: use filter for plugins
sapphi-red Mar 7, 2025
efbc14b
refactor: skip hook filter inject in build
sapphi-red Mar 7, 2025
ead8ded
perf: add `experimental.enableNativePlugin`
sapphi-red Mar 7, 2025
eb642a2
fix: buffer full reload messages
sapphi-red Mar 7, 2025
228a599
chore: enable continuous release
sapphi-red Mar 7, 2025
d066bed
fix: remove duplicate `createRequire` in optimizer (#86)
hi-ogawa Mar 10, 2025
7450fb8
chore: set `ROLLDOWN_OPTIONS_VALIDATION=loose` for vitepress
sapphi-red Mar 10, 2025
de29115
fix(optimizer): externalize as absolute
sapphi-red Mar 17, 2025
af0d4d5
ci: update workflows
sapphi-red Mar 17, 2025
140ccea
chore: update LICENSE
sapphi-red Mar 25, 2025
486a056
fix: vite dir
sapphi-red Mar 26, 2025
42026c3
release: v6.3.0-beta.0
sapphi-red Mar 26, 2025
3b6e9f3
chore: fix publish workflow
sapphi-red Mar 26, 2025
3a17290
chore: fix publish workflow
sapphi-red Mar 26, 2025
43449ae
release: v6.3.0-beta.1
sapphi-red Mar 26, 2025
fbaeca3
chore: fix publish workflow
sapphi-red Mar 26, 2025
8f2832f
release: v6.3.0-beta.2
sapphi-red Mar 26, 2025
6556550
chore: update create-vite versions
sapphi-red Mar 26, 2025
bbddbf0
chore: update stackblitz link
sapphi-red Mar 26, 2025
1851a57
fix(transform): merge tsconfig jsx options with oxc jsx options corre…
sapphi-red Mar 27, 2025
0fc1af8
fix(optimizer): derive `resolve.symlinks` option properly (#91)
sapphi-red Mar 27, 2025
fbbfca4
fix: use exact regexp filter for virtual module (#89)
hi-ogawa Mar 27, 2025
03e6286
release: v6.3.0-beta.3
sapphi-red Mar 27, 2025
4c29fae
chore: update readme (#87)
TheAlexLichter Mar 31, 2025
df12968
fix: accept worker iife format (#94)
sapphi-red Apr 1, 2025
5a6a776
fix(worker): suppress export related warnings in worker build (#95)
sapphi-red Apr 1, 2025
1217a4c
chore: merge main
sapphi-red Apr 2, 2025
8dd6f69
fix: plugin hook filter
sapphi-red Apr 2, 2025
96d9065
feat: update rolldown
sapphi-red Apr 2, 2025
efe2728
fix: make `this.environment` available in outputOptions hook
sapphi-red Apr 2, 2025
81179fe
release: v6.3.0-beta.4
sapphi-red Apr 2, 2025
7c6faa6
feat(oxc)!: jsxRefresh filter (#101)
sapphi-red Apr 3, 2025
67a8f80
chore: merge main
sapphi-red Apr 3, 2025
b17bade
chore: cleanup changelog
sapphi-red Apr 3, 2025
5f9204a
release: v6.3.0-beta.5
sapphi-red Apr 3, 2025
c7e3e04
feat: update rolldown
sapphi-red Apr 8, 2025
744c814
test: skip debug id check if sourcemap does not exist
sapphi-red Apr 8, 2025
8646e4e
chore: bump rolldown (#105)
underfin Apr 9, 2025
7912459
perf: define viteMetadata instead of assign (#106)
sapphi-red Apr 9, 2025
4bd6cfe
chore: update the issue template (#99)
TheAlexLichter Apr 9, 2025
3493043
chore: merge main
sapphi-red Apr 10, 2025
e28b1c0
feat: update rolldown
sapphi-red Apr 10, 2025
6628d44
chore: fix lint
sapphi-red Apr 10, 2025
da2cc96
release: v6.3.0-beta.6
sapphi-red Apr 10, 2025
698cbea
fix: export `rolldownVersion` (#109)
sapphi-red Apr 12, 2025
6ec06b6
feat(optimizer): improve esbuild plugin conversion compat (#110)
sapphi-red Apr 12, 2025
2505053
chore: merge main
sapphi-red Apr 12, 2025
0eb422d
release: v6.3.0-beta.7
sapphi-red Apr 12, 2025
aa29797
fix: update oxc esbuild option warning message (#111)
sapphi-red Apr 14, 2025
e996d54
feat: update rolldown
sapphi-red Apr 15, 2025
892cf34
chore: oxc esbuild option warning message grammar (#112)
TheAlexLichter Apr 15, 2025
4392a9a
release: v6.3.0-beta.8
sapphi-red Apr 15, 2025
732a8e4
fix(optimizer): include rollupOptions in config hash (#115)
sapphi-red Apr 16, 2025
bf2b441
fix(native-plugin): disable optimizerResolvePlugin correctly (#116)
sapphi-red Apr 16, 2025
7b0adee
chore: update links in README (#92)
sapphi-red Apr 16, 2025
bd41f8a
chore: merge main
sapphi-red Apr 17, 2025
f2d0354
feat: reexport `withFilter` from rolldown (#122)
sapphi-red Apr 17, 2025
752d7f6
feat: update rolldown
sapphi-red Apr 17, 2025
4aabb07
release: v6.3.0
sapphi-red Apr 17, 2025
b9b2a4b
chore: merge main
sapphi-red Apr 18, 2025
4c2f7db
feat: update rolldown
sapphi-red Apr 18, 2025
b200675
release: v6.3.1
sapphi-red Apr 18, 2025
1f0f755
perf: add filter to asset plugin (#118)
sapphi-red Apr 19, 2025
33ba886
perf: remove data uri plugin (#130)
sapphi-red Apr 19, 2025
c655b43
feat: update rolldown
sapphi-red Apr 21, 2025
71df1f0
chore: remove unnecessary workaround
sapphi-red Apr 21, 2025
bc90a9e
fix(oxc): correctly type oxc options (#131)
sapphi-red Apr 21, 2025
f64dd5c
release: v6.3.2
sapphi-red Apr 21, 2025
cd8aa76
feat: update rolldown
sapphi-red Apr 22, 2025
702b6ac
feat: add backward compat and warning for esbuild.banner/footer (#135)
sapphi-red Apr 22, 2025
c3d7d05
release: v6.3.3
sapphi-red Apr 22, 2025
233b7bf
feat: update rolldown
sapphi-red Apr 23, 2025
e5fa092
feat(native-plugin): adapt to the new native `transformPlugin` (#136)
shulaoda Apr 23, 2025
3c6c85f
chore: remove code to suppress minify warning
sapphi-red Apr 23, 2025
91a494c
release: v6.3.4
sapphi-red Apr 23, 2025
ec8faac
feat: update rolldown
sapphi-red Apr 24, 2025
524f990
chore: merge main
sapphi-red Apr 24, 2025
5306775
feat(native-plugin): use native reporter plugin (#138)
sapphi-red Apr 24, 2025
b5cf739
release: v6.3.5
sapphi-red Apr 24, 2025
9c6218e
chore: add rolldown-vite indicator (#141)
TheAlexLichter Apr 25, 2025
265e4d4
fix(asset): regex filter should not force query to be included (#143)
sapphi-red Apr 28, 2025
24787ef
chore: merge main
sapphi-red Apr 30, 2025
f086663
feat(types): make exposed `Rollup` type more compatible with Rollup (…
sapphi-red Apr 30, 2025
6eccf22
fix(types): add ESBuildOptions type back (#146)
sapphi-red Apr 30, 2025
b3efa58
feat: update rolldown
sapphi-red May 1, 2025
fca16ad
fix: set `typescript.removeClassFieldsWithoutInitializer` for `useDef…
sapphi-red May 1, 2025
e3b3ca5
release: v6.3.6
sapphi-red May 1, 2025
2b287c6
feat: use Rolldown's watch API (#67)
sapphi-red May 1, 2025
f5d2494
feat(types): add `shouldTransformCachedModule` for compat (#150)
sapphi-red May 1, 2025
9b83bd1
feat: update rolldown
sapphi-red May 2, 2025
ab53aa3
release: v6.3.7
sapphi-red May 2, 2025
1b31e92
feat(types): add `Rollup.RollupWatcherEvent` type (#152)
sapphi-red May 2, 2025
6058945
chore: merge main
sapphi-red May 7, 2025
2fed74f
feat: update rolldown
sapphi-red May 7, 2025
6e1d23e
fix(config): make dynamic import work in config (#157)
sapphi-red May 7, 2025
ccfccef
fix: watch related fixes (#158)
sapphi-red May 7, 2025
9865a3a
release: v6.3.8
sapphi-red May 7, 2025
9615b13
fix(optimizer): suppress warnings for optimizer (#160)
sapphi-red May 7, 2025
de8164a
test: reduce diff with normal Vite (#161)
sapphi-red May 8, 2025
e226aaa
chore: merge main
sapphi-red May 9, 2025
284487e
ci: run tests with native resolver (#163)
sapphi-red May 9, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 9 additions & 11 deletions .github/ISSUE_TEMPLATE/bug_report.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: "\U0001F41E Bug report"
description: Report an issue with Vite
name: "\U0001F41E General Bug report"
description: Report an issue with `rolldown-vite`
labels: [pending triage]
type: Bug
body:
Expand All @@ -19,7 +19,7 @@ body:
id: reproduction
attributes:
label: Reproduction
description: Please provide a link via [vite.new](https://vite.new/) or a link to a repo that can reproduce the problem you ran into. `npm create vite@latest` and `npm create vite-extra@latest` (for SSR or library repros) can be used as a starter template. A [minimal reproduction](https://stackoverflow.com/help/minimal-reproducible-example) is required ([Why?](https://antfu.me/posts/why-reproductions-are-required)). If a report is vague (e.g. just a generic error message) and has no reproduction, it will receive a "needs reproduction" label. If no reproduction is provided after 3 days, it will be auto-closed.
description: Please provide a link via [StackBlitz](https://stackblitz.com/fork/github/vitejs/rolldown-vite/tree/rolldown-vite/packages/create-vite/template-vanilla) or a link to a repo that can reproduce the problem you ran into. `npm create vite@latest` and `npm create vite-extra@latest` (for SSR or library repros) can be used as a starter template (don't forget to alias `vite` to `rolldown-vite`). A [minimal reproduction](https://stackoverflow.com/help/minimal-reproducible-example) is required ([Why?](https://antfu.me/posts/why-reproductions-are-required)). If a report is vague (e.g. just a generic error message) and has no reproduction, it will receive a "needs reproduction" label. If no reproduction is provided after 3 days, it will be auto-closed.
placeholder: Reproduction URL
validations:
required: true
Expand All @@ -33,7 +33,7 @@ body:
id: system-info
attributes:
label: System Info
description: Output of `npx envinfo --system --npmPackages '{vite,@vitejs/*,rollup}' --binaries --browsers`
description: Output of `npx envinfo --system --npmPackages '{vite,rolldown-vite,@vitejs/*,rollup,rolldown}' --binaries --browsers`
render: shell
placeholder: System, Binaries, Browsers
validations:
Expand Down Expand Up @@ -75,17 +75,15 @@ body:
label: Validations
description: Before submitting the issue, please make sure you do the following
options:
- label: Follow our [Code of Conduct](https://github.com/vitejs/vite/blob/main/CODE_OF_CONDUCT.md)
- label: Follow our [Code of Conduct](https://github.com/vitejs/rolldown-vite/blob/main/CODE_OF_CONDUCT.md)
required: true
- label: Read the [Contributing Guidelines](https://github.com/vitejs/vite/blob/main/CONTRIBUTING.md).
- label: Read the [Contributing Guidelines](https://github.com/vitejs/rolldown-vite/blob/main/CONTRIBUTING.md).
required: true
- label: Read the [docs](https://vite.dev/guide).
- label: Read the [docs](https://vite.dev/guide) and the [Rolldown-related guide](https://main.vite.dev/guide/rolldown.html).
required: true
- label: Check that there isn't [already an issue](https://github.com/vitejs/vite/issues) that reports the same bug to avoid creating a duplicate.
- label: Check that there isn't [already an issue](https://github.com/vitejs/rolldown-vite/issues) that reports the same bug to avoid creating a duplicate.
required: true
- label: Make sure this is a Vite issue and not a framework-specific issue. For example, if it's a Vue SFC related bug, it should likely be reported to [vuejs/core](https://github.com/vuejs/core) instead.
required: true
- label: Check that this is a concrete bug. For Q&A open a [GitHub Discussion](https://github.com/vitejs/vite/discussions) or join our [Discord Chat Server](https://chat.vite.dev/).
- label: Check that this is a concrete bug. For Q&A open a [GitHub Discussion](https://github.com/vitejs/rolldown-vite/discussions) or join our [Discord Chat Server](https://chat.vite.dev/).
required: true
- label: The provided reproduction is a [minimal reproducible example](https://stackoverflow.com/help/minimal-reproducible-example) of the bug.
required: true
17 changes: 7 additions & 10 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,11 @@
blank_issues_enabled: false
contact_links:
- name: Vite Plugin React Issues
url: https://github.com/vitejs/vite-plugin-react/issues/new/choose
about: React related issues should be reported on the vite-plugin-react repository.
- name: Vite Plugin Vue Issues
url: https://github.com/vitejs/vite-plugin-vue/issues/new/choose
about: Vue related issues should be reported on the vite-plugin-vue repository.
- name: Discord Chat
url: https://chat.vite.dev
about: Ask questions and discuss with other Vite users in real time.
- name: Vite Discord
url: https://chat.vite.dev/
about: Do you have questions around Vite? Then join the Discord to discuss them with other Vite users.
- name: Rolldown Discord
url: https://chat.rolldown.rs/
about: Ask questions and discuss with other Rolldown users in real time.
- name: Questions & Discussions
url: https://github.com/vitejs/vite/discussions
url: https://github.com/vitejs/rolldown-vite/discussions
about: Use GitHub discussions for message-board style questions and discussions.
43 changes: 0 additions & 43 deletions .github/ISSUE_TEMPLATE/docs.yml

This file was deleted.

105 changes: 105 additions & 0 deletions .github/ISSUE_TEMPLATE/feature-regression.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,105 @@
name: "\U0001F4A5 Feature Regression"
description: Report a feature regression issue with `rolldown-vite`
labels: ["c: regression", pending triage]
type: Bug
body:
- type: markdown
attributes:
value: |
Thanks for taking the time to report a feature regression. A regression is when a feature that works as expected when using `vite` no longer behaves correctly.
- type: textarea
id: regression-description
attributes:
label: Describe the regression
description: A clear and concise description of the regression. If you intend to submit a PR for this issue, let us know in the description. Thanks!
placeholder: The feature used to work like ... Now it behaves like ...
validations:
required: true
- type: input
id: reproduction
attributes:
label: Reproduction
description: Please provide a link via [StackBlitz](https://stackblitz.com/fork/github/vitejs/rolldown-vite/tree/rolldown-vite/packages/create-vite/template-vanilla) or a link to a repo that can reproduce the regression issue. A [minimal reproduction](https://stackoverflow.com/help/minimal-reproducible-example) is required ([Why?](https://antfu.me/posts/why-reproductions-are-required)). If no reproduction is provided after 3 days, the issue may be auto-closed.
placeholder: Reproduction URL
validations:
required: true
- type: textarea
id: expected-behavior
attributes:
label: Expected Behavior
description: Describe what you expected to happen when using the feature.
placeholder: I expected the feature to ...
validations:
required: true
- type: textarea
id: actual-behavior
attributes:
label: Actual Behavior
description: Describe what actually happens when using the feature.
placeholder: The feature currently behaves like ...
validations:
required: true
- type: textarea
id: reproduction-steps
attributes:
label: Steps to Reproduce
description: Please provide any reproduction steps that may need to be described. E.g., if it happens only when running the dev or build script, make sure it's clear which one to use.
placeholder: Run `npm install` followed by `npm run dev`
- type: textarea
id: system-info
attributes:
label: System Info
description: Output of `npx envinfo --system --npmPackages '{vite,rolldown-vite,@vitejs/*,rollup,rolldown}' --binaries --browsers`
render: shell
placeholder: System, Binaries, Browsers
validations:
required: true
- type: dropdown
id: package-manager
attributes:
label: Used Package Manager
description: Select the used package manager
options:
- npm
- yarn
- pnpm
- bun
validations:
required: true
- type: textarea
id: logs
attributes:
label: Logs
description: |
Optional if provided reproduction. Please try not to insert an image but copy paste the log text.
1. Run `vite` or `vite build` with the `--debug` flag.
2. Provide the error log here in the format below.
````
<details>
<summary>Click to expand!</summary>
```shell
// paste the log text here
```
</details>
````
- type: checkboxes
id: checkboxes
attributes:
label: Validations
description: Before submitting the issue, please make sure you do the following
options:
- label: Follow our [Code of Conduct](https://github.com/vitejs/rolldown-vite/blob/main/CODE_OF_CONDUCT.md)
required: true
- label: Read the [Contributing Guidelines](https://github.com/vitejs/rolldown-vite/blob/main/CONTRIBUTING.md).
required: true
- label: Read the [docs](https://vite.dev/guide) and the [Rolldown-related guide](https://main.vite.dev/guide/rolldown.html).
required: true
- label: Check that there isn't [already an issue](https://github.com/vitejs/rolldown-vite/issues) that reports the same regression to avoid creating a duplicate.
required: true
- label: Check that this is a concrete regression. For Q&A open a [GitHub Discussion](https://github.com/vitejs/rolldown-vite/discussions) or join our [Discord Chat Server](https://chat.vite.dev/).
required: true
- label: The provided reproduction is a [minimal reproducible example](https://stackoverflow.com/help/minimal-reproducible-example) of the regression.
required: true
48 changes: 0 additions & 48 deletions .github/ISSUE_TEMPLATE/feature_request.yml

This file was deleted.

97 changes: 97 additions & 0 deletions .github/ISSUE_TEMPLATE/performance.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,97 @@
name: "\U0001F3C3 Performance Degradation"
description: Report a performance issue with `rolldown-vite`
labels: ["c: performance", pending triage]
type: Bug
body:
- type: markdown
attributes:
value: |
Thanks for taking the time to report a performance issue, such as a slow build or a slow dev server compared to using the main `vite` package.
- type: textarea
id: performance-description
attributes:
label: Describe the performance issue
description: A clear and concise description of the performance issue. If you intend to submit a PR for this issue, let us know in the description. Thanks!
placeholder: I am doing ... What I expect is ... What actually happening is ...
validations:
required: true
- type: input
id: reproduction
attributes:
label: Reproduction
description: Please provide a link via [StackBlitz](https://stackblitz.com/fork/github/vitejs/rolldown-vite/tree/rolldown-vite/packages/create-vite/template-vanilla) or a link to a repo that can reproduce the performance issue. A [minimal reproduction](https://stackoverflow.com/help/minimal-reproducible-example) is required ([Why?](https://antfu.me/posts/why-reproductions-are-required)). If no reproduction is provided after 3 days, the issue may be auto-closed.
placeholder: Reproduction URL
validations:
required: true
- type: textarea
id: performance-metrics
attributes:
label: Performance Metrics
description: Provide any relevant performance metrics (e.g., build time, memory usage, CPU usage). Include before/after comparisons if applicable.
placeholder: "Build time with `rolldown-vite`: X seconds, build time with plain `vite`: X seconds, etc."
validations:
required: true
- type: textarea
id: reproduction-steps
attributes:
label: Steps to reproduce
description: Please provide any reproduction steps that may need to be described. E.g., if it happens only when running the dev or build script, make sure it's clear which one to use.
placeholder: Run `npm install` followed by `npm run dev`
- type: textarea
id: system-info
attributes:
label: System Info
description: Output of `npx envinfo --system --npmPackages '{vite,rolldown-vite,@vitejs/*,rollup,rolldown}' --binaries --browsers`
render: shell
placeholder: System, Binaries, Browsers
validations:
required: true
- type: dropdown
id: package-manager
attributes:
label: Used Package Manager
description: Select the used package manager
options:
- npm
- yarn
- pnpm
- bun
validations:
required: true
- type: textarea
id: logs
attributes:
label: Logs
description: |
Optional if provided reproduction. Please try not to insert an image but copy paste the log text.
1. Run `vite` or `vite build` with the `--debug` flag.
2. Provide the error log here in the format below.
````
<details>
<summary>Click to expand!</summary>
```shell
// paste the log text here
```
</details>
````
- type: checkboxes
id: checkboxes
attributes:
label: Validations
description: Before submitting the issue, please make sure you do the following
options:
- label: Follow our [Code of Conduct](https://github.com/vitejs/rolldown-vite/blob/main/CODE_OF_CONDUCT.md)
required: true
- label: Read the [Contributing Guidelines](https://github.com/vitejs/rolldown-vite/blob/main/CONTRIBUTING.md).
required: true
- label: Read the [docs](https://vite.dev/guide) and the [Rolldown-related guide](https://main.vite.dev/guide/rolldown.html).
required: true
- label: Check that there isn't [already an issue](https://github.com/vitejs/rolldown-vite/issues) that reports the same bug to avoid creating a duplicate.
required: true
- label: Check that this is a concrete bug. For Q&A open a [GitHub Discussion](https://github.com/vitejs/rolldown-vite/discussions) or join our [Discord Chat Server](https://chat.vite.dev/).
required: true
- label: The provided reproduction is a [minimal reproducible example](https://stackoverflow.com/help/minimal-reproducible-example) of the bug.
required: true
Loading