Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 15 additions & 1 deletion rollup/tools/configuredSubpackagePlugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,14 @@ const EDITOR_API_EXPOSE_MODULES = [
'vs/editor/contrib/clipboard/browser/clipboard',
'vs/editor/contrib/cursorUndo/browser/cursorUndo',
'vs/editor/contrib/contextmenu/browser/contextmenu',
'vs/editor/contrib/find/browser/findController'
'vs/editor/contrib/find/browser/findController',

// GraphiQL
'vs/base/common/uri',
'vs/editor/common/services/editorBaseApi',
'vs/editor/common/standalone/standaloneEnums',
'vs/editor/browser/controller/mouseTarget',
'vs/editor/common/core/range',
]

const ALLOWED_MAIN_DEPENDENCIES = new Set([
Expand Down Expand Up @@ -317,6 +324,12 @@ ${code}`
source: `export * from '${MAIN_PACKAGE_NAME}/workers/editor.worker'`,
type: 'asset'
})
this.emitFile({
fileName: 'esm/vs/editor/edcore.main.js',
needsCodeReference: false,
source: `export * from './editor.api.js';`,
type: 'asset'
})
}
}
]
Expand Down Expand Up @@ -459,6 +472,7 @@ ${code}`
[
'vs/editor/editor.api',
'vs/editor/editor.worker',
'vs/editor/edcore.main',
...EDITOR_API_EXPOSE_MODULES
].flatMap((module) => {
return Object.entries({
Expand Down