Skip to content

Commit

Permalink
chore: fix site
Browse files Browse the repository at this point in the history
  • Loading branch information
ota-meshi committed Feb 26, 2024
1 parent 4c83a9a commit d7add87
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .env-cmdrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ module.exports = {
UPDATE_FIXTURES: 'true'
},
sveltekit: {
NODE_OPTIONS: `--experimental-loader ./svelte-kit-import-hook.mjs ${
NODE_OPTIONS: `--import ./svelte-kit-import.mjs ${
// eslint-disable-next-line no-process-env -- ignore
process.env.NODE_OPTIONS || ''
}`
Expand Down
3 changes: 3 additions & 0 deletions svelte-kit-import.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import { register } from 'node:module';
import { pathToFileURL } from 'node:url';
register('./svelte-kit-import-hook.mjs', pathToFileURL('./'));
3 changes: 2 additions & 1 deletion svelte.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@ const config = {
extensions: ['.svelte', '.md'],
kit: {
paths: {
base: '/eslint-plugin-svelte'
base: '/eslint-plugin-svelte',
relative: false
},
adapter: ghpagesAdapter({
// default options are shown
Expand Down

0 comments on commit d7add87

Please sign in to comment.