Skip to content

Commit

Permalink
fix: dedupe source-map-js in vuetify to fix the build
Browse files Browse the repository at this point in the history
  • Loading branch information
haoqunjiang committed Mar 21, 2024
1 parent da5ec00 commit a0721cb
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions tests/vuetify.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,16 @@ export async function test(options: RunOptions) {
// there's also an e2e test script in vuetify,
// but it seems flaky, so I skipped it for now
test: ['yarn lerna run test:coverage -- -- -i'],
patchFiles: {
'package.json': (content) => {
const pkg = JSON.parse(content)
// As of 2024-03-21, the version of source-map-js from vuetify isn't the same as the one from vue core.
// Therefore a "Duplicate identifier" TS error occurs when building.
// But we can't run dedupe in the vuetify repo, as the build would fail, too.
// So we need to overwrite the version to ^1.1.0 to avoid duplications of the dependency.
pkg.resolutions['source-map-js'] = '^1.1.0'
return JSON.stringify(pkg, null, 2)
},
},
})
}

0 comments on commit a0721cb

Please sign in to comment.