Skip to content

Commit

Permalink
fix: improve eslint exports workaround (fix #1838)
Browse files Browse the repository at this point in the history
  • Loading branch information
brillout committed Sep 2, 2024
1 parent 91f6e68 commit c1d490a
Show file tree
Hide file tree
Showing 11 changed files with 11 additions and 0 deletions.
1 change: 1 addition & 0 deletions vike/RenderErrorPage.js
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
// eslint doesn't seem to support `package.json#exports`.
export * from './dist/shared/RenderErrorPage.mjs'
export { default } from './dist/shared/RenderErrorPage.mjs'
1 change: 1 addition & 0 deletions vike/__internal.js
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
// eslint doesn't seem to support `package.json#exports`.
export * from './dist/__internal/index.mjs'
export { default } from './dist/__internal/index.mjs'
1 change: 1 addition & 0 deletions vike/__internal/setup.js
Original file line number Diff line number Diff line change
@@ -1,2 +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'
1 change: 1 addition & 0 deletions vike/abort.js
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
// eslint doesn't seem to support `package.json#exports`.
export * from './dist/shared/abort.mjs'
export { default } from './dist/shared/abort.mjs'
1 change: 1 addition & 0 deletions vike/cli.js
Original file line number Diff line number Diff line change
@@ -1,2 +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'
1 change: 1 addition & 0 deletions vike/client.js
Original file line number Diff line number Diff line change
@@ -1,2 +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'
1 change: 1 addition & 0 deletions vike/client/router.js
Original file line number Diff line number Diff line change
@@ -1,2 +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'
1 change: 1 addition & 0 deletions vike/plugin.js
Original file line number Diff line number Diff line change
@@ -1,2 +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'
1 change: 1 addition & 0 deletions vike/prerender.js
Original file line number Diff line number Diff line change
@@ -1,2 +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'
1 change: 1 addition & 0 deletions vike/routing.js
Original file line number Diff line number Diff line change
@@ -1,2 +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'
1 change: 1 addition & 0 deletions vike/server.js
Original file line number Diff line number Diff line change
@@ -1,2 +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'

0 comments on commit c1d490a

Please sign in to comment.