Skip to content

Commit

Permalink
fix: react
Browse files Browse the repository at this point in the history
  • Loading branch information
nakasyou committed Dec 29, 2024
1 parent c4414f4 commit 45849f9
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 7 deletions.
1 change: 0 additions & 1 deletion deno.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 1 addition & 5 deletions src/mod.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 }

Expand All @@ -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
Expand Down
5 changes: 4 additions & 1 deletion vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand Down

0 comments on commit 45849f9

Please sign in to comment.