diff --git a/deno.lock b/deno.lock index ccd0e65b..90ae1583 100644 --- a/deno.lock +++ b/deno.lock @@ -5879,7 +5879,6 @@ "npm:react@19", "npm:redux-throttle@~0.1.1", "npm:redux@^3.7.2", - "npm:regenerator-runtime@~0.14.1", "npm:scratch-audio@^2.0.36", "npm:scratch-l10n@^5.0.61", "npm:scratch-render-fonts@^1.0.147", diff --git a/src/mod.tsx b/src/mod.tsx index aa0267e0..f7dcb42f 100644 --- a/src/mod.tsx +++ b/src/mod.tsx @@ -7,6 +7,7 @@ import { SET_SESSION } from './reducers/session' import { CHANGE_OPTIONS_TYPE, type BslashOptions } from './reducers/bslash' import { setProjectId } from './reducers/project-state'; import { storageStore, type StorageFunctions } from './lib/storage' +export { default as createDefaultProjectJSON } from './lib/default-project/project-data' export type { BslashOptions } @@ -15,11 +16,6 @@ const getStore = (): Store<{}> => { return AppStateHOC.store } -export const setSession = () => { - const store = getStore() - store.dispatch({ type: '' }) -} - export interface Session { user: { username: string diff --git a/vite.config.ts b/vite.config.ts index 2aa9ec51..14252fe4 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -92,7 +92,10 @@ export default defineConfig((env) => { }, minify: false, rollupOptions: { - external: Object.keys(packageJSON.dependencies) + external: [ + ...Object.keys(packageJSON.dependencies), + 'react/jsx-runtime', 'react-dom/client' + ] } }, optimizeDeps: {