mirror of
https://github.com/BookStackApp/BookStack.git
synced 2025-07-12 14:21:46 +03:00
Standardised module loading system & fixed build system
Fixed broken build system in broken webpack version. Also updates module system to standardise on ES6 import/exports, Especially since babel has changed it's 'default' logic for the old module system.
This commit is contained in:
@ -1,5 +1,5 @@
|
||||
const Code = require('../services/code');
|
||||
const DrawIO = require('../services/drawio');
|
||||
import Code from "../services/code";
|
||||
import DrawIO from "../services/drawio";
|
||||
|
||||
/**
|
||||
* Handle pasting images from clipboard.
|
||||
@ -593,4 +593,4 @@ class WysiwygEditor {
|
||||
|
||||
}
|
||||
|
||||
module.exports = WysiwygEditor;
|
||||
export default WysiwygEditor;
|
||||
|
Reference in New Issue
Block a user