11require ( 'dotenv' ) . config ( ) ;
22import getSiteConfig from './siteConfig' ;
33import { themes as prismThemes } from 'prism-react-renderer' ;
4- import type { Config , OnBrokenMarkdownImagesFunction , } from '@docusaurus/types' ;
4+ import type { Config } from '@docusaurus/types' ;
55import type * as Preset from '@docusaurus/preset-classic' ;
66import themeCodeEditor from './src/plugins/theme-code-editor'
77import { v4 as uuidv4 } from 'uuid' ;
@@ -48,7 +48,6 @@ const ORGANIZATION_NAME = siteConfig.gitHub?.orgName ?? 'gbsl-informatik';
4848const PROJECT_NAME = siteConfig . gitHub ?. projectName ?? 'teaching-dev' ;
4949const GH_OAUTH_CLIENT_ID = process . env . GH_OAUTH_CLIENT_ID ;
5050const DEFAULT_TEST_USER = process . env . DEFAULT_TEST_USER ?. trim ( ) ;
51- const RUNS_IN_STACKBLITZ = ! ! process . env . STACKBLITZ ;
5251
5352
5453const config : Config = applyTransformers ( {
@@ -93,9 +92,7 @@ const config: Config = applyTransformers({
9392 } ,
9493 future : {
9594 v4 : true ,
96- experimental_faster : RUNS_IN_STACKBLITZ
97- ? false
98- : {
95+ experimental_faster : {
9996 /**
10097 * no config options for swcJsLoader so far.
10198 * Instead configure it over the jsLoader in the next step
@@ -111,9 +108,7 @@ const config: Config = applyTransformers({
111108 } ,
112109 } ,
113110 webpack : {
114- jsLoader : RUNS_IN_STACKBLITZ
115- ? undefined
116- : ( isServer ) => {
111+ jsLoader : ( isServer ) => {
117112 const defaultOptions = require ( "@docusaurus/faster" ) . getSwcLoaderOptions ( { isServer } ) ;
118113 return {
119114 loader : 'builtin:swc-loader' , // (only works with Rspack)
0 commit comments