Skip to content

Commit ddd5c5d

Browse files
authored
chore: upgrade to unbuild v3 rc (#18502)
1 parent f97a578 commit ddd5c5d

File tree

5 files changed

+809
-831
lines changed

5 files changed

+809
-831
lines changed

packages/create-vite/build.config.ts

-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ export default defineBuildConfig({
2323
'rollup:options'(_ctx, options) {
2424
options.plugins = [
2525
options.plugins,
26-
// @ts-expect-error TODO: unbuild uses rollup v3 and Vite uses rollup v4
2726
licensePlugin(
2827
path.resolve(__dirname, './LICENSE'),
2928
'create-vite license',

packages/create-vite/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,6 @@
3939
"minimist": "^1.2.8",
4040
"picocolors": "^1.1.1",
4141
"prompts": "^2.4.2",
42-
"unbuild": "^2.0.0"
42+
"unbuild": "^3.0.0-rc.11"
4343
}
4444
}

packages/plugin-legacy/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@
5757
"devDependencies": {
5858
"acorn": "^8.14.0",
5959
"picocolors": "^1.1.1",
60-
"unbuild": "^2.0.0",
60+
"unbuild": "^3.0.0-rc.11",
6161
"vite": "workspace:*"
6262
}
6363
}

playground/js-sourcemap/__tests__/js-sourcemap.spec.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ describe.runIf(isBuild)('build tests', () => {
177177
const map = findAssetFile(/with-define-object.*\.js\.map/)
178178
expect(formatSourcemapForSnapshot(JSON.parse(map))).toMatchInlineSnapshot(`
179179
{
180-
"mappings": "qBAEA,SAASA,GAAO,CACJC,GACZ,CAEA,SAASA,GAAY,CAEX,QAAA,MAAM,qBAAsBC,CAAkB,CACxD,CAEAF,EAAK",
180+
"mappings": "qBAEA,SAASA,GAAO,CACJC,EAAA,CACZ,CAEA,SAASA,GAAY,CAEX,QAAA,MAAM,qBAAsBC,CAAkB,CACxD,CAEAF,EAAK",
181181
"sources": [
182182
"../../with-define-object.ts",
183183
],

0 commit comments

Comments
 (0)