refactor(plugin-infra): workspace loading (#3222)

This commit is contained in:
Alex Yang
2023-07-13 23:52:06 +08:00
parent c38dd1cc5e
commit 9ff483cd4e
16 changed files with 70 additions and 42 deletions
+5 -9
View File
@@ -13,18 +13,14 @@ export default defineConfig({
entry: {
type: resolve(root, 'src/type.ts'),
manager: resolve(root, 'src/manager.ts'),
'__internal__/workspace': resolve(
root,
'src/__internal__/workspace.ts'
),
},
},
rollupOptions: {
external: [
'jotai',
'jotai/vanilla',
'@blocksuite/blocks',
'@blocksuite/store',
'@blocksuite/global',
'@blocksuite/editor',
'@blocksuite/lit',
],
external: ['react', /^jotai/, /^@blocksuite/],
},
},
plugins: [