1
0
mirror of https://github.com/laurent22/joplin.git synced 2024-12-24 10:27:10 +02:00

Android,Desktop: Plugin API: Fix unable to require @codemirror/search (#10205)

This commit is contained in:
Henry Heino 2024-03-26 04:36:30 -07:00 committed by GitHub
parent c4aa18a63e
commit c1ae449ce2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 0 deletions

View File

@ -1,6 +1,7 @@
import * as codeMirrorView from '@codemirror/view';
import * as codeMirrorState from '@codemirror/state';
import * as codeMirrorSearch from '@codemirror/search';
import * as codeMirrorLanguage from '@codemirror/language';
import * as codeMirrorAutocomplete from '@codemirror/autocomplete';
import * as codeMirrorCommands from '@codemirror/commands';
@ -21,6 +22,7 @@ import * as lezerMarkdown from '@lezer/markdown';
const libraryNameToPackage: Record<string, any> = {
'@codemirror/view': codeMirrorView,
'@codemirror/state': codeMirrorState,
'@codemirror/search': codeMirrorSearch,
'@codemirror/language': codeMirrorLanguage,
'@codemirror/autocomplete': codeMirrorAutocomplete,
'@codemirror/commands': codeMirrorCommands,

View File

@ -224,6 +224,7 @@ const pluginConfig = { ...baseConfig, entry: './src/index.ts',
const externalContentScriptLibraries = [
'@codemirror/view',
'@codemirror/state',
'@codemirror/search',
'@codemirror/language',
'@codemirror/autocomplete',
'@codemirror/commands',