mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-31 15:18:38 -04:00
Resolve dependency module requiring
* es5 style module exports * remove script tag require * webpack config ProvidePlugin Note that this commit only fix JavaScript module loading runtime error.
This commit is contained in:
parent
0be342c44d
commit
963a435ae1
9 changed files with 175 additions and 59 deletions
|
@ -12,7 +12,12 @@ module.exports = {
|
|||
"window.jQuery": "jquery",
|
||||
Visibility: "visibilityjs",
|
||||
Cookies: "js-cookie",
|
||||
CodeMirror: "codemirror"
|
||||
CodeMirror: "codemirror",
|
||||
emojify: "emojify.js",
|
||||
ot: "ot",
|
||||
io: "socket.io-client",
|
||||
LZString: "lz-string",
|
||||
key: "keymaster"
|
||||
}),
|
||||
new webpack.DefinePlugin({
|
||||
"require.specified": "require.resolve"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue