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:
Dan Brown
2018-11-09 21:17:35 +00:00
parent 5b36ddb12f
commit e3230f8f21
37 changed files with 384 additions and 3372 deletions

View File

@ -1,4 +1,4 @@
const MarkdownIt = require("markdown-it");
import MarkdownIt from "markdown-it";
const md = new MarkdownIt({ html: false });
class PageComments {
@ -172,4 +172,4 @@ class PageComments {
}
module.exports = PageComments;
export default PageComments;