140 lines
4.6 KiB
Diff
140 lines
4.6 KiB
Diff
--- a/config/webpack.config.js
|
|
+++ b/config/webpack.config.js
|
|
@@ -6,7 +6,6 @@ const VueLoaderPlugin = require('vue-loa
|
|
const StatsWriterPlugin = require('webpack-stats-plugin').StatsWriterPlugin;
|
|
const CompressionPlugin = require('compression-webpack-plugin');
|
|
const MonacoWebpackPlugin = require('monaco-editor-webpack-plugin');
|
|
-const BundleAnalyzerPlugin = require('webpack-bundle-analyzer').BundleAnalyzerPlugin;
|
|
const CopyWebpackPlugin = require('copy-webpack-plugin');
|
|
const vendorDllHash = require('./helpers/vendor_dll_hash');
|
|
|
|
@@ -151,12 +150,12 @@ module.exports = {
|
|
|
|
resolve: {
|
|
extensions: ['.js', '.gql', '.graphql'],
|
|
- modules: ['/usr/share/gitlab/node_modules','/usr/share/gitlab/node_modules/mermaid/node_modules', '/usr/lib/nodejs'],
|
|
+ modules: ['/usr/share/gitlab/node_modules','/usr/share/gitlab/vendor/node_modules','/usr/share/gitlab/node_modules/mermaid/node_modules', '/usr/lib/nodejs', '/usr/share/nodejs'],
|
|
alias,
|
|
},
|
|
|
|
resolveLoader: {
|
|
- modules: ['/usr/share/gitlab/node_modules', '/usr/lib/nodejs'],
|
|
+ modules: ['/usr/share/gitlab/node_modules', '/usr/lib/nodejs','/usr/share/nodejs'],
|
|
},
|
|
|
|
module: {
|
|
@@ -431,19 +430,6 @@ module.exports = {
|
|
// enable HMR only in webpack-dev-server
|
|
DEV_SERVER_LIVERELOAD && new webpack.HotModuleReplacementPlugin(),
|
|
|
|
- // optionally generate webpack bundle analysis
|
|
- WEBPACK_REPORT &&
|
|
- new BundleAnalyzerPlugin({
|
|
- analyzerMode: 'static',
|
|
- generateStatsFile: true,
|
|
- openAnalyzer: false,
|
|
- reportFilename: path.join(ROOT_PATH, 'webpack-report/index.html'),
|
|
- statsFilename: path.join(ROOT_PATH, 'webpack-report/stats.json'),
|
|
- statsOptions: {
|
|
- source: false,
|
|
- },
|
|
- }),
|
|
-
|
|
new webpack.DefinePlugin({
|
|
// This one is used to define window.gon.ee and other things properly in tests:
|
|
'process.env.IS_EE': JSON.stringify(IS_EE),
|
|
@@ -469,6 +455,7 @@ module.exports = {
|
|
|
|
node: {
|
|
fs: 'empty', // sqljs requires fs
|
|
+ Buffer: 'mock',
|
|
setImmediate: false,
|
|
},
|
|
};
|
|
--- a/package.json
|
|
+++ b/package.json
|
|
@@ -50,59 +50,34 @@
|
|
"apollo-link-batch-http": "^1.2.11",
|
|
"apollo-upload-client": "^10.0.0",
|
|
"at.js": "^1.5.4",
|
|
- "autosize": "^4.0.0",
|
|
"aws-sdk": "^2.526.0",
|
|
- "axios": "^0.19.0",
|
|
"babel-loader": "^8.0.6",
|
|
- "bootstrap": "4.3.1",
|
|
- "brace-expansion": "^1.1.8",
|
|
"cache-loader": "^4.1.0",
|
|
- "chart.js": "2.7.2",
|
|
"classlist-polyfill": "^1.2.0",
|
|
"clipboard": "^1.7.1",
|
|
"codesandbox-api": "^0.0.20",
|
|
"compression-webpack-plugin": "^3.0.0",
|
|
"copy-webpack-plugin": "^5.0.4",
|
|
- "core-js": "^3.2.1",
|
|
"cropper": "^2.3.0",
|
|
- "css-loader": "^1.0.0",
|
|
"d3": "^4.13.0",
|
|
- "d3-scale": "^1.0.7",
|
|
- "d3-selection": "^1.2.0",
|
|
- "dateformat": "^3.0.3",
|
|
- "deckar01-task_list": "^2.2.1",
|
|
"diff": "^3.4.0",
|
|
"document-register-element": "1.13.1",
|
|
"dropzone": "^4.2.0",
|
|
"emoji-regex": "^7.0.3",
|
|
"emoji-unicode-version": "^0.2.1",
|
|
- "exports-loader": "^0.7.0",
|
|
"file-loader": "^4.2.0",
|
|
"formdata-polyfill": "^3.0.11",
|
|
- "fuzzaldrin-plus": "^0.5.0",
|
|
- "glob": "^7.1.2",
|
|
"graphql": "^14.0.2",
|
|
"graphql-tag": "^2.0.0",
|
|
- "imports-loader": "^0.8.0",
|
|
- "jed": "^1.1.1",
|
|
"jest-transform-graphql": "^2.1.0",
|
|
- "jquery": "^3.4.1",
|
|
- "jquery-ujs": "1.2.2",
|
|
"jquery.caret": "^0.3.1",
|
|
- "jquery.waitforimages": "^2.2.0",
|
|
- "js-cookie": "^2.1.3",
|
|
- "jszip": "^3.1.3",
|
|
- "jszip-utils": "^0.0.2",
|
|
"katex": "^0.10.0",
|
|
"lodash": "^4.17.15",
|
|
- "marked": "^0.3.12",
|
|
"mermaid": "^8.4.2",
|
|
"monaco-editor": "^0.15.6",
|
|
"monaco-editor-webpack-plugin": "^1.7.0",
|
|
- "mousetrap": "^1.4.6",
|
|
"pdfjs-dist": "^2.0.943",
|
|
"pikaday": "^1.8.0",
|
|
- "popper.js": "^1.14.7",
|
|
"prismjs": "^1.6.0",
|
|
"prosemirror-markdown": "^1.3.0",
|
|
"prosemirror-model": "^1.6.4",
|
|
@@ -119,13 +94,9 @@
|
|
"svg4everybody": "2.1.9",
|
|
"swagger-ui-dist": "^3.24.3",
|
|
"three": "^0.84.0",
|
|
- "three-orbit-controls": "^82.1.0",
|
|
- "three-stl-loader": "^1.0.4",
|
|
- "timeago.js": "^4.0.1",
|
|
"tiptap": "^1.8.0",
|
|
"tiptap-commands": "^1.4.0",
|
|
"tiptap-extensions": "^1.8.0",
|
|
- "underscore": "^1.9.0",
|
|
"url-loader": "^2.1.0",
|
|
"visibilityjs": "^1.2.4",
|
|
"vue": "^2.6.10",
|
|
@@ -136,10 +107,6 @@
|
|
"vue-virtual-scroll-list": "^1.3.1",
|
|
"vuedraggable": "^2.23.0",
|
|
"vuex": "^3.1.0",
|
|
- "webpack": "^4.40.2",
|
|
- "webpack-bundle-analyzer": "^3.5.1",
|
|
- "webpack-cli": "^3.3.9",
|
|
- "webpack-stats-plugin": "^0.3.0",
|
|
"worker-loader": "^2.0.0",
|
|
"xterm": "^3.5.0"
|
|
},
|