fix(widget-code): change dynamic import to require (#3745)
This commit is contained in:
parent
3e34e52440
commit
3d7d5d2e67
@ -169,7 +169,7 @@ export default class CodeControl extends React.Component {
|
||||
if (changedProps.lang) {
|
||||
const { mode } = this.getLanguageByName(changedProps.lang) || {};
|
||||
if (mode) {
|
||||
await import(`codemirror/mode/${mode}/${mode}.js`);
|
||||
require(`codemirror/mode/${mode}/${mode}.js`);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user