diff --git a/src/BitBakeMode.ts b/src/BitBakeMode.ts index 411bced..f8f9582 100644 --- a/src/BitBakeMode.ts +++ b/src/BitBakeMode.ts @@ -1,10 +1,17 @@ -import "ace-builds/src-noconflict/ace"; -import {PythonHighlightRules} from "ace-builds/src-noconflict/mode-python" -import {ShHighlightRules} from "ace-builds/src-noconflict/mode-sh" +import ace from "ace-builds"; +import "ace-builds/esm-resolver"; +import "ace-builds/src-noconflict/ext-language_tools"; +import "ace-builds/src-noconflict/mode-python"; +import "ace-builds/src-noconflict/mode-sh"; + +//ace.config.set('basePath', '/assets/ace-builds/src-noconflict') const TextHighlightRules = ace.require('ace/mode/text_highlight_rules').TextHighlightRules; const TextMode = ace.require("ace/mode/text").Mode +const ShHighlightRules = ace.require("ace/mode/sh_highlight_rules").ShHighlightRules; +const PythonHighlightRules = ace.require("ace/mode/python_highlight_rules").PythonHighlightRules; + export class BitBakeHighlightRules extends TextHighlightRules { constructor() { super();