mirror of
https://github.com/BookStackApp/BookStack.git
synced 2025-06-15 23:01:44 +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,4 +1,4 @@
|
||||
const codeLib = require('../services/code');
|
||||
import codeLib from "../services/code";
|
||||
|
||||
const methods = {
|
||||
show() {
|
||||
@ -37,7 +37,7 @@ const data = {
|
||||
callback: null
|
||||
};
|
||||
|
||||
module.exports = {
|
||||
export default {
|
||||
methods,
|
||||
data
|
||||
};
|
Reference in New Issue
Block a user