Skip to content

Commit 4166d4a

Browse files
authored
Merge pull request #702 from dorshinar/export-modules-for-graphiql
feat: export modules required by graphiql
2 parents f588d7b + 19706c0 commit 4166d4a

1 file changed

Lines changed: 15 additions & 1 deletion

File tree

rollup/tools/configuredSubpackagePlugin.ts

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,14 @@ const EDITOR_API_EXPOSE_MODULES = [
5252
'vs/editor/contrib/clipboard/browser/clipboard',
5353
'vs/editor/contrib/cursorUndo/browser/cursorUndo',
5454
'vs/editor/contrib/contextmenu/browser/contextmenu',
55-
'vs/editor/contrib/find/browser/findController'
55+
'vs/editor/contrib/find/browser/findController',
56+
57+
// GraphiQL
58+
'vs/base/common/uri',
59+
'vs/editor/common/services/editorBaseApi',
60+
'vs/editor/common/standalone/standaloneEnums',
61+
'vs/editor/browser/controller/mouseTarget',
62+
'vs/editor/common/core/range',
5663
]
5764

5865
const ALLOWED_MAIN_DEPENDENCIES = new Set([
@@ -317,6 +324,12 @@ ${code}`
317324
source: `export * from '${MAIN_PACKAGE_NAME}/workers/editor.worker'`,
318325
type: 'asset'
319326
})
327+
this.emitFile({
328+
fileName: 'esm/vs/editor/edcore.main.js',
329+
needsCodeReference: false,
330+
source: `export * from './editor.api.js';`,
331+
type: 'asset'
332+
})
320333
}
321334
}
322335
]
@@ -459,6 +472,7 @@ ${code}`
459472
[
460473
'vs/editor/editor.api',
461474
'vs/editor/editor.worker',
475+
'vs/editor/edcore.main',
462476
...EDITOR_API_EXPOSE_MODULES
463477
].flatMap((module) => {
464478
return Object.entries({

0 commit comments

Comments
 (0)