Skip to content

Commit

Permalink
support any modules from unpkg.com
Browse files Browse the repository at this point in the history
  • Loading branch information
madil4 committed Aug 17, 2023
1 parent 9f18155 commit 9203dbd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Editor/useWorker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ self.MonacoEnvironment = {

monaco.languages.typescript.typescriptDefaults.setEagerModelSync(true);
monaco.languages.typescript.typescriptDefaults.addExtraLib(
`declare module 'https://unpkg.com/awatif' {
`declare module 'https://unpkg.com/*'
declare module 'https://unpkg.com/awatif' {
export function analyzing(nodes: any, elements:any, assignments:any): any;
export function analyzing2(nodes: any, elements:any, assignments:any): any;
}`
);

0 comments on commit 9203dbd

Please sign in to comment.