Skip to content

Commit

Permalink
fix: fix resolve fallbacks (fix #2040)
Browse files Browse the repository at this point in the history
  • Loading branch information
brillout committed Jan 7, 2025
1 parent 8118aa8 commit 962127b
Show file tree
Hide file tree
Showing 15 changed files with 45 additions and 33 deletions.
6 changes: 3 additions & 3 deletions vike/RenderErrorPage.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
// eslint doesn't seem to support `package.json#exports`.
export * from './dist/shared/RenderErrorPage.mjs'
export { default } from './dist/shared/RenderErrorPage.mjs'
// Some tools still need this as of January 2025
export * from './dist/esm/shared/RenderErrorPage.js'
export { default } from './dist/esm/shared/RenderErrorPage.js'
6 changes: 3 additions & 3 deletions vike/__internal.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
// eslint doesn't seem to support `package.json#exports`.
export * from './dist/__internal/index.mjs'
export { default } from './dist/__internal/index.mjs'
// Some tools still need this as of January 2025
export * from './dist/esm/__internal/index.js'
export { default } from './dist/esm/__internal/index.js'
3 changes: 3 additions & 0 deletions vike/__internal/loadImportBuild.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
// Some tools still need this as of January 2025
export * from '../dist/esm/node/runtime/globalContext/loadImportBuild.js'
export { default } from '../dist/esm/node/runtime/globalContext/loadImportBuild.js'
6 changes: 3 additions & 3 deletions vike/__internal/setup.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
// eslint doesn't seem to support `package.json#exports`.
export * from '../dist/esm/node/runtime/page-files/setup.mjs'
export { default } from '../dist/esm/node/runtime/page-files/setup.mjs'
// Some tools still need this as of January 2025
export * from '../dist/esm/node/runtime/page-files/setup.js'
export { default } from '../dist/esm/node/runtime/page-files/setup.js'
6 changes: 3 additions & 3 deletions vike/abort.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
// eslint doesn't seem to support `package.json#exports`.
export * from './dist/shared/abort.mjs'
export { default } from './dist/shared/abort.mjs'
// Some tools still need this as of January 2025
export * from './dist/esm/shared/abort.js'
export { default } from './dist/esm/shared/abort.js'
6 changes: 3 additions & 3 deletions vike/cli.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
// eslint doesn't seem to support `package.json#exports`.
export * from './dist/esm/node/cli/index.mjs'
export { default } from './dist/esm/node/cli/index.mjs'
// Some tools still need this as of January 2025
export * from './dist/esm/node/cli/index.js'
export { default } from './dist/esm/node/cli/index.js'
6 changes: 3 additions & 3 deletions vike/client.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
// eslint doesn't seem to support `package.json#exports`.
export * from './dist/esm/client/server-routing-runtime'
export { default } from './dist/esm/client/server-routing-runtime'
// Some tools still need this as of January 2025
export * from './dist/esm/client/server-routing-runtime/index.js'
export { default } from './dist/esm/client/server-routing-runtime/index.js'
6 changes: 3 additions & 3 deletions vike/client/router.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
// eslint doesn't seem to support `package.json#exports`.
export * from '../dist/esm/client/client-routing-runtime'
export { default } from '../dist/esm/client/client-routing-runtime'
// Some tools still need this as of January 2025
export * from '../dist/esm/client/client-routing-runtime/index.js'
export { default } from '../dist/esm/client/client-routing-runtime/index.js'
3 changes: 3 additions & 0 deletions vike/getPageContext.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
// Some tools still need this as of January 2025
export * from './dist/esm/shared/getPageContext.js'
export { default } from './dist/esm/shared/getPageContext.js'
3 changes: 3 additions & 0 deletions vike/modifyUrl.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
// Some tools still need this as of January 2025
export * from './dist/esm/shared/modifyUrl.js'
export { default } from './dist/esm/shared/modifyUrl.js'
6 changes: 3 additions & 3 deletions vike/plugin.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
// eslint doesn't seem to support `package.json#exports`.
export * from './dist/esm/node/plugin/index.mjs'
export { default } from './dist/esm/node/plugin/index.mjs'
// Some tools still need this as of January 2025
export * from './dist/esm/node/plugin/index.js'
export { default } from './dist/esm/node/plugin/index.js'
6 changes: 3 additions & 3 deletions vike/prerender.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
// eslint doesn't seem to support `package.json#exports`.
export * from './dist/esm/node/prerender/index.mjs'
export { default } from './dist/esm/node/prerender/index.mjs'
// Some tools still need this as of January 2025
export * from './dist/esm/node/prerender/index.js'
export { default } from './dist/esm/node/prerender/index.js'
6 changes: 3 additions & 3 deletions vike/routing.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
// eslint doesn't seem to support `package.json#exports`.
export * from './dist/shared/route/routing.mjs'
export { default } from './dist/shared/route/routing.mjs'
// Some tools still need this as of January 2025
export * from './dist/esm/shared/route/routing.js'
export { default } from './dist/esm/shared/route/routing.js'
6 changes: 3 additions & 3 deletions vike/server.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
// eslint doesn't seem to support `package.json#exports`.
export * from './dist/esm/node/runtime/index.mjs'
export { default } from './dist/esm/node/runtime/index.mjs'
// Some tools still need this as of January 2025
export * from './dist/esm/node/runtime/index.js'
export { default } from './dist/esm/node/runtime/index.js'
3 changes: 3 additions & 0 deletions vike/types.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
// Some tools still need this as of January 2025
export * from './dist/esm/types/index.js'
export { default } from './dist/esm/types/index.js'

0 comments on commit 962127b

Please sign in to comment.