82 lines
2.8 KiB
Diff
82 lines
2.8 KiB
Diff
--- a/package.json
|
|
+++ b/package.json
|
|
@@ -122,29 +122,19 @@
|
|
"style-loader": "^0.23.1",
|
|
"svg4everybody": "2.1.9",
|
|
"three": "^0.84.0",
|
|
- "three-orbit-controls": "^82.1.0",
|
|
- "three-stl-loader": "^1.0.4",
|
|
"timeago.js": "^3.0.2",
|
|
"tiptap": "^1.8.0",
|
|
"tiptap-commands": "^1.4.0",
|
|
"tiptap-extensions": "^1.8.0",
|
|
- "underscore": "^1.9.0",
|
|
- "url-loader": "^1.1.2",
|
|
"visibilityjs": "^1.2.4",
|
|
"vue": "^2.6.10",
|
|
"vue-apollo": "^3.0.0-beta.28",
|
|
"vue-loader": "^15.7.0",
|
|
- "vue-resource": "^1.5.1",
|
|
"vue-router": "^3.0.2",
|
|
"vue-template-compiler": "^2.6.10",
|
|
"vue-virtual-scroll-list": "^1.3.1",
|
|
"vuedraggable": "^2.23.0",
|
|
"vuex": "^3.1.0",
|
|
- "webpack": "^4.29.0",
|
|
- "webpack-bundle-analyzer": "^3.3.2",
|
|
- "webpack-cli": "^3.2.1",
|
|
- "webpack-stats-plugin": "^0.2.1",
|
|
- "worker-loader": "^2.0.0",
|
|
"xterm": "^3.5.0"
|
|
},
|
|
"devDependencies": {
|
|
--- a/config/webpack.config.js
|
|
+++ b/config/webpack.config.js
|
|
@@ -5,7 +5,6 @@
|
|
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 ROOT_PATH = '/usr/share/gitlab';
|
|
@@ -127,12 +126,12 @@
|
|
|
|
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: {
|
|
@@ -370,16 +369,6 @@
|
|
// 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'),
|
|
- }),
|
|
-
|
|
new webpack.DefinePlugin({
|
|
// This one is used to define window.gon.ee and other things properly in tests:
|
|
'process.env.IS_GITLAB_EE': JSON.stringify(IS_EE),
|
|
@@ -405,6 +394,7 @@
|
|
|
|
node: {
|
|
fs: 'empty', // sqljs requires fs
|
|
+ Buffer: 'mock',
|
|
setImmediate: false,
|
|
},
|
|
};
|