Commit 0efe82aa authored by Lukas Eipert's avatar Lukas Eipert

Remove references to moment.js from webpack

This removes the reference to moment.js from our webpack config.
chart.js was the last dependency depending on it.

mermaid now utilizes moment-mini, so we are putting that into the vendor
DLL instead.

pikaday also removed it's dependency in 1.8.0:
https://github.com/Pikaday/Pikaday/releases/tag/1.8.0
parent f180d74b
...@@ -329,9 +329,6 @@ module.exports = { ...@@ -329,9 +329,6 @@ module.exports = {
// automatically configure monaco editor web workers // automatically configure monaco editor web workers
new MonacoWebpackPlugin(), new MonacoWebpackPlugin(),
// prevent pikaday from including moment.js
new webpack.IgnorePlugin(/moment/, /pikaday/),
// fix legacy jQuery plugins which depend on globals // fix legacy jQuery plugins which depend on globals
new webpack.ProvidePlugin({ new webpack.ProvidePlugin({
$: 'jquery', $: 'jquery',
......
...@@ -38,7 +38,7 @@ module.exports = { ...@@ -38,7 +38,7 @@ module.exports = {
'katex', 'katex',
'three', 'three',
'select2', 'select2',
'moment', 'moment-mini',
'aws-sdk', 'aws-sdk',
'sanitize-html', 'sanitize-html',
'bootstrap/dist/js/bootstrap.js', 'bootstrap/dist/js/bootstrap.js',
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment