File tree Expand file tree Collapse file tree 2 files changed +8
-7
lines changed
modules/block-editor/composables Expand file tree Collapse file tree 2 files changed +8
-7
lines changed Original file line number Diff line number Diff line change @@ -4,12 +4,13 @@ import { useEvaluation } from '@modules/evaluation/composables/use-evaluation'
4
4
import { defineResolver } from '@modules/evaluation/helpers/define-resolver'
5
5
import { useItemStore } from '@modules/item/store'
6
6
7
- const drive = useStore ( )
8
7
9
8
export const resolvers = [
10
9
defineResolver ( {
11
10
test : ( id ) => id === 'app:drive' ,
12
11
resolve : async ( ) => {
12
+ const drive = useStore ( )
13
+
13
14
return {
14
15
useDrive : ( ) => drive ,
15
16
decode : DirectoryEntry . decode ,
@@ -38,6 +39,8 @@ export const resolvers = [
38
39
defineResolver ( {
39
40
test : ( id ) => id . startsWith ( '/' ) ,
40
41
resolve : async ( id ) => {
42
+ const drive = useStore ( )
43
+
41
44
const bytes = await drive . read ( {
42
45
path : id ,
43
46
} )
Original file line number Diff line number Diff line change 1
- const path = require ( 'path' )
2
- const tailwindcss = require ( 'tailwindcss ' )
1
+ const { resolve } = require ( 'path' )
2
+ const { mergeConfig } = require ( 'vite ' )
3
3
4
- const { defineConfig, mergeConfig } = require ( 'vite' )
5
-
6
- const baseConfig = require ( '../vite.base.config' )
4
+ const baseConfig = require ( './vite.base.config' )
7
5
8
6
9
7
module . exports = mergeConfig ( baseConfig , {
10
8
build : {
11
9
lib : {
12
- entry : path . resolve ( __dirname , 'app.ts' ) ,
10
+ entry : resolve ( __dirname , 'app.ts' ) ,
13
11
name : 'App' ,
14
12
} ,
15
13
} ,
You can’t perform that action at this time.
0 commit comments