81 lines
2.8 KiB
Diff
81 lines
2.8 KiB
Diff
--- a/package.json
|
|
+++ b/package.json
|
|
@@ -121,28 +121,17 @@
|
|
"stylelint-error-string-formatter": "1.0.2",
|
|
"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",
|
|
"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 ROOT_PATH = '/usr/share/gitlab';
|
|
const CACHE_PATH = process.env.WEBPACK_CACHE_PATH || path.join(ROOT_PATH, 'tmp/cache');
|
|
@@ -119,12 +118,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: {
|
|
@@ -316,16 +315,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),
|
|
@@ -351,6 +340,7 @@
|
|
|
|
node: {
|
|
fs: 'empty', // sqljs requires fs
|
|
+ Buffer: 'mock',
|
|
setImmediate: false,
|
|
},
|
|
};
|