Skip to content

Commit

Permalink
fix(build): use subpath exports in import maps
Browse files Browse the repository at this point in the history
  • Loading branch information
KaelWD committed Feb 10, 2025
1 parent 2d3ddd5 commit 90986f2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions packages/vuetify/build/rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ export default [
(await this.resolve('src/components/index.ts')).id
)
await Promise.all(importedIds.map(async id => {
const importFrom = path.relative(srcDir, id).replace(/\.ts$/, '.js')
const importFrom = path.relative(srcDir, id).replace(/\/index\.ts$/, '')

if (await this.resolve(path.join(id, '../_variables.scss')) != null) {
variables.push(id)
Expand Down Expand Up @@ -247,7 +247,7 @@ export default [
(await this.resolve('src/labs/components.ts')).id
)
await Promise.all(importedIds.map(async id => {
const importFrom = path.relative(srcDir, id).replace(/\.ts$/, '.js')
const importFrom = path.relative(srcDir, id).replace(/\/index\.ts$/, '')

if (await this.resolve(path.join(id, '../_variables.scss')) != null) {
variables.push(id)
Expand Down
4 changes: 2 additions & 2 deletions packages/vuetify/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -184,9 +184,9 @@
},
"peerDependencies": {
"typescript": ">=4.7",
"vite-plugin-vuetify": ">=1.0.0",
"vite-plugin-vuetify": ">=2.1.0",
"vue": "^3.5.0",
"webpack-plugin-vuetify": ">=2.0.0"
"webpack-plugin-vuetify": ">=3.1.0"
},
"peerDependenciesMeta": {
"typescript": {
Expand Down

0 comments on commit 90986f2

Please sign in to comment.