Skip to content
Permalink

Comparing changes

This is a direct comparison between two commits made in this repository or its related repositories. View the default comparison for this range or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: hi-ogawa/vite
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 30ed368a832dbdce1c84c1cb8e5e6023186e804c
Choose a base ref
..
head repository: hi-ogawa/vite
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 85b3796da6a902ff0690297020df6e06c761c60a
Choose a head ref
4 changes: 4 additions & 0 deletions packages/vite/src/node/server/environments/rolldown.ts
Original file line number Diff line number Diff line change
@@ -234,6 +234,10 @@ class RolldownEnvironment extends DevEnvironment {
moduleTypes: {
'.css': 'js',
},
// TODO: isolating finalizer doesn't rewrite yet
// experimental: {
// resolveNewUrlToAsset: true,
// },
}
this.instance = await rolldown.rolldown(this.inputOptions)

4 changes: 4 additions & 0 deletions playground/rolldown-dev-react/src/app.tsx
Original file line number Diff line number Diff line change
@@ -9,6 +9,10 @@ import testStyleInline from './test-style-inline.css?inline'
// TODO: hmr for url assets?
import testStyleUrl from './test-style-url.css?url'

// TODO: isolating finalizer doesn't rewrite yet
// const testAssetTxt = new URL('./test-asset.txt', import.meta.url).href;
// console.log(testAssetTxt);

export function App() {
const [count, setCount] = React.useState(0)

1 change: 1 addition & 0 deletions playground/rolldown-dev-react/src/test-asset.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
hello