File tree Expand file tree Collapse file tree 1 file changed +0
-15
lines changed Expand file tree Collapse file tree 1 file changed +0
-15
lines changed Original file line number Diff line number Diff line change 1
- import { createRequire } from 'node:module' ;
2
- import { resolve } from 'node:path' ;
3
1
import tutorialkit from '@tutorialkit/astro' ;
4
2
import { defineConfig } from 'astro/config' ;
5
3
6
- const require = createRequire ( import . meta. url ) ;
7
- const astroDist = resolve ( require . resolve ( 'astro/package.json' ) , '..' ) ;
8
- const swapFunctionEntry = resolve ( astroDist , 'dist/transitions/swap-functions.js' ) ;
9
-
10
4
export default defineConfig ( {
11
5
devToolbar : { enabled : false } ,
12
6
server : { port : 4329 } ,
13
7
integrations : [ tutorialkit ( ) ] ,
14
-
15
- vite : {
16
- resolve : {
17
- alias : {
18
- // work-around for https://github.com/stackblitz/tutorialkit/pull/238
19
- 'node_modules/astro/dist/transitions/swap-functions' : swapFunctionEntry ,
20
- } ,
21
- } ,
22
- } ,
23
8
} ) ;
You can’t perform that action at this time.
0 commit comments