Skip to content

Commit

Permalink
chore: upgrade to unbuild v3 rc (#18502)
Browse files Browse the repository at this point in the history
  • Loading branch information
bluwy authored Oct 29, 2024
1 parent f97a578 commit ddd5c5d
Show file tree
Hide file tree
Showing 5 changed files with 809 additions and 831 deletions.
1 change: 0 additions & 1 deletion packages/create-vite/build.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ export default defineBuildConfig({
'rollup:options'(_ctx, options) {
options.plugins = [
options.plugins,
// @ts-expect-error TODO: unbuild uses rollup v3 and Vite uses rollup v4
licensePlugin(
path.resolve(__dirname, './LICENSE'),
'create-vite license',
Expand Down
2 changes: 1 addition & 1 deletion packages/create-vite/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,6 @@
"minimist": "^1.2.8",
"picocolors": "^1.1.1",
"prompts": "^2.4.2",
"unbuild": "^2.0.0"
"unbuild": "^3.0.0-rc.11"
}
}
2 changes: 1 addition & 1 deletion packages/plugin-legacy/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
"devDependencies": {
"acorn": "^8.14.0",
"picocolors": "^1.1.1",
"unbuild": "^2.0.0",
"unbuild": "^3.0.0-rc.11",
"vite": "workspace:*"
}
}
2 changes: 1 addition & 1 deletion playground/js-sourcemap/__tests__/js-sourcemap.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ describe.runIf(isBuild)('build tests', () => {
const map = findAssetFile(/with-define-object.*\.js\.map/)
expect(formatSourcemapForSnapshot(JSON.parse(map))).toMatchInlineSnapshot(`
{
"mappings": "qBAEA,SAASA,GAAO,CACJC,GACZ,CAEA,SAASA,GAAY,CAEX,QAAA,MAAM,qBAAsBC,CAAkB,CACxD,CAEAF,EAAK",
"mappings": "qBAEA,SAASA,GAAO,CACJC,EAAA,CACZ,CAEA,SAASA,GAAY,CAEX,QAAA,MAAM,qBAAsBC,CAAkB,CACxD,CAEAF,EAAK",
"sources": [
"../../with-define-object.ts",
],
Expand Down
Loading

0 comments on commit ddd5c5d

Please sign in to comment.