@monaco-editor/react引入这个cdn资源会load失败
网上很多例子都是这样写的,我这样写monaco会报错
import * as monaco from 'monaco-editor';
import { loader } from '@monaco-editor/react';loader.config({ monaco });
改成这样
import * as monaco from 'monaco-editor/esm/vs/editor/editor.api.js';
import { loader } from '@monaco-editor/react';
loader.config({ monaco });