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' ;
31import tutorialkit from '@tutorialkit/astro' ;
42import { defineConfig } from 'astro/config' ;
53
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-
104export default defineConfig ( {
115 devToolbar : { enabled : false } ,
126 server : { port : 4329 } ,
137 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- } ,
238} ) ;
You can’t perform that action at this time.
0 commit comments