2020-04-13 13:49:04 +05:30
|
|
|
Use debian packaged node modules when available
|
|
|
|
- Exclude packaged modules from transpiling
|
|
|
|
- Remove webpack-bundle-analyzer
|
|
|
|
- Resolve .json files
|
2020-04-25 00:15:18 +05:30
|
|
|
- Add more plugins to babel.config.js
|
2020-12-07 17:52:42 +05:30
|
|
|
- Add mkdirp 1.0 and loader-utils 2.0 to ensure compatibility for packaged
|
|
|
|
modules (See #976310)
|
2020-12-24 20:32:23 +05:30
|
|
|
- Use link protocol for modules with permission issues (which has a bin: entry
|
2021-01-04 16:46:44 +05:30
|
|
|
in package.json) or dependencies. Use portal protocol only for modules that
|
|
|
|
1. does not have any other dependency and 2. does not have a bin: entry
|
2020-12-24 20:32:23 +05:30
|
|
|
See https://github.com/yarnpkg/berry/issues/2266
|
2021-01-04 16:46:44 +05:30
|
|
|
- Even better, portal protocol tries to satisfy even devDependencies so avoid
|
|
|
|
it
|
|
|
|
- Modules with problems compression-webpack-plugin, copy-webpack-plugin,
|
|
|
|
jszip, mkdirp, js-yaml, font-awesome, katex, cache-loader, webpack
|
2020-04-13 13:49:04 +05:30
|
|
|
|
2019-08-08 15:17:34 +05:30
|
|
|
--- a/config/webpack.config.js
|
|
|
|
+++ b/config/webpack.config.js
|
2020-02-23 17:54:41 +05:30
|
|
|
@@ -6,7 +6,6 @@
|
2019-08-08 15:17:34 +05:30
|
|
|
const StatsWriterPlugin = require('webpack-stats-plugin').StatsWriterPlugin;
|
|
|
|
const CompressionPlugin = require('compression-webpack-plugin');
|
2020-07-29 00:16:15 +05:30
|
|
|
const MonacoWebpackPlugin = require('./plugins/monaco_webpack');
|
2019-08-08 15:17:34 +05:30
|
|
|
-const BundleAnalyzerPlugin = require('webpack-bundle-analyzer').BundleAnalyzerPlugin;
|
2019-10-12 22:33:52 +05:30
|
|
|
const CopyWebpackPlugin = require('copy-webpack-plugin');
|
2020-01-01 14:40:56 +05:30
|
|
|
const vendorDllHash = require('./helpers/vendor_dll_hash');
|
2019-08-08 15:17:34 +05:30
|
|
|
|
2021-01-04 16:46:44 +05:30
|
|
|
@@ -152,6 +151,8 @@
|
2020-12-09 23:02:53 +05:30
|
|
|
|
|
|
|
entry: generateEntries,
|
|
|
|
|
|
|
|
+ externals: [ 'canvas' ],
|
|
|
|
+
|
|
|
|
output: {
|
|
|
|
path: path.join(ROOT_PATH, 'public/assets/webpack'),
|
|
|
|
publicPath: '/assets/webpack/',
|
2021-01-04 16:46:44 +05:30
|
|
|
@@ -161,13 +162,13 @@
|
2020-04-09 18:43:07 +05:30
|
|
|
},
|
2019-08-08 15:17:34 +05:30
|
|
|
|
|
|
|
resolve: {
|
2020-04-09 18:43:07 +05:30
|
|
|
- extensions: ['.js', '.gql', '.graphql'],
|
2019-08-08 15:17:34 +05:30
|
|
|
- modules: ['/usr/share/gitlab/node_modules','/usr/share/gitlab/node_modules/mermaid/node_modules', '/usr/lib/nodejs'],
|
2020-04-09 18:43:07 +05:30
|
|
|
+ extensions: ['.js', '.gql', '.graphql', '.json'],
|
2021-01-04 16:46:44 +05:30
|
|
|
+ modules: ['node_modules','/var/lib/gitlab/node_modules','/usr/share/gitlab/vendor/node_modules','/usr/share/gitlab/node_modules/mermaid/node_modules', '/usr/share/nodejs/markdown-it/node_modules/', '/usr/lib/nodejs', '/usr/share/nodejs'],
|
2019-08-08 15:17:34 +05:30
|
|
|
alias,
|
|
|
|
},
|
|
|
|
|
|
|
|
resolveLoader: {
|
|
|
|
- modules: ['/usr/share/gitlab/node_modules', '/usr/lib/nodejs'],
|
2021-01-04 16:46:44 +05:30
|
|
|
+ modules: ['node_modules','/var/lib/gitlab/node_modules', '/usr/lib/nodejs','/usr/share/nodejs'],
|
2019-08-08 15:17:34 +05:30
|
|
|
},
|
|
|
|
|
|
|
|
module: {
|
2021-01-04 16:46:44 +05:30
|
|
|
@@ -180,9 +181,13 @@
|
2020-03-28 19:53:26 +05:30
|
|
|
},
|
|
|
|
{
|
|
|
|
test: /\.js$/,
|
2020-04-08 15:34:39 +05:30
|
|
|
- exclude: path =>
|
|
|
|
+ exclude: [ path =>
|
|
|
|
/node_modules\/(?!tributejs)|node_modules|vendor[\\/]assets/.test(path) &&
|
|
|
|
!/\.vue\.js/.test(path),
|
2020-04-11 19:51:50 +05:30
|
|
|
+ /\/usr\/share\/nodejs/,
|
|
|
|
+ /\/usr\/lib\/nodejs/,
|
|
|
|
+ /\/usr\/share\/javascript/
|
2020-04-08 15:34:39 +05:30
|
|
|
+ ],
|
2020-03-28 19:53:26 +05:30
|
|
|
loader: 'babel-loader',
|
|
|
|
options: {
|
|
|
|
cacheDirectory: path.join(CACHE_PATH, 'babel-loader'),
|
2021-01-04 16:46:44 +05:30
|
|
|
@@ -526,19 +531,6 @@
|
2019-08-08 15:17:34 +05:30
|
|
|
// 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'),
|
2019-12-21 21:33:11 +05:30
|
|
|
- statsOptions: {
|
|
|
|
- source: false,
|
|
|
|
- },
|
2019-08-08 15:17:34 +05:30
|
|
|
- }),
|
|
|
|
-
|
|
|
|
new webpack.DefinePlugin({
|
2019-09-30 22:13:22 +05:30
|
|
|
// This one is used to define window.gon.ee and other things properly in tests:
|
2019-12-21 21:33:11 +05:30
|
|
|
'process.env.IS_EE': JSON.stringify(IS_EE),
|
2021-01-04 16:46:44 +05:30
|
|
|
@@ -574,6 +566,7 @@
|
2019-08-08 15:17:34 +05:30
|
|
|
|
2019-09-30 22:13:22 +05:30
|
|
|
node: {
|
|
|
|
fs: 'empty', // sqljs requires fs
|
|
|
|
+ Buffer: 'mock',
|
|
|
|
setImmediate: false,
|
|
|
|
},
|
2019-08-08 15:17:34 +05:30
|
|
|
};
|
2020-01-11 19:08:58 +05:30
|
|
|
--- a/package.json
|
|
|
|
+++ b/package.json
|
2020-07-29 00:16:15 +05:30
|
|
|
@@ -35,12 +35,6 @@
|
2020-04-25 00:15:18 +05:30
|
|
|
"webpack-prod": "NODE_OPTIONS=\"--max-old-space-size=3584\" NODE_ENV=production webpack --config config/webpack.config.js"
|
|
|
|
},
|
|
|
|
"dependencies": {
|
2020-06-23 00:43:41 +05:30
|
|
|
- "@babel/core": "^7.10.1",
|
|
|
|
- "@babel/plugin-proposal-class-properties": "^7.10.1",
|
|
|
|
- "@babel/plugin-proposal-json-strings": "^7.10.1",
|
|
|
|
- "@babel/plugin-proposal-private-methods": "^7.10.1",
|
|
|
|
- "@babel/plugin-syntax-import-meta": "^7.10.1",
|
|
|
|
- "@babel/preset-env": "^7.10.1",
|
2020-04-25 00:15:18 +05:30
|
|
|
"@gitlab/at.js": "1.5.5",
|
2021-01-04 16:46:44 +05:30
|
|
|
"@gitlab/svgs": "1.171.0",
|
|
|
|
"@gitlab/ui": "21.33.0",
|
|
|
|
@@ -55,29 +49,27 @@
|
2020-10-25 00:47:17 +05:30
|
|
|
"apollo-link": "^1.2.14",
|
|
|
|
"apollo-link-batch-http": "^1.2.14",
|
|
|
|
"apollo-upload-client": "^13.0.0",
|
2020-04-08 15:34:39 +05:30
|
|
|
- "autosize": "^4.0.2",
|
2021-01-04 16:46:44 +05:30
|
|
|
+ "autosize": "link:/usr/share/nodejs/autosize",
|
2020-04-08 15:34:39 +05:30
|
|
|
"aws-sdk": "^2.637.0",
|
2020-11-24 16:42:00 +05:30
|
|
|
- "axios": "^0.20.0",
|
2020-05-03 16:10:17 +05:30
|
|
|
- "babel-loader": "^8.0.6",
|
2021-01-04 16:46:44 +05:30
|
|
|
+ "axios": "link:/usr/share/nodejs/axios",
|
|
|
|
+ "babel-loader": "link:/usr/share/nodejs/babel-loader",
|
2020-03-12 18:50:15 +05:30
|
|
|
"babel-plugin-lodash": "^3.3.4",
|
2020-06-23 00:43:41 +05:30
|
|
|
"bootstrap": "4.4.1",
|
2020-07-01 15:44:16 +05:30
|
|
|
- "brace-expansion": "^1.1.8",
|
|
|
|
- "cache-loader": "^4.1.0",
|
2020-02-23 17:54:41 +05:30
|
|
|
- "clipboard": "^1.7.1",
|
2020-07-03 14:39:25 +05:30
|
|
|
- "codemirror": "^5.48.4",
|
2021-01-04 16:46:44 +05:30
|
|
|
+ "brace-expansion": "link:/usr/share/nodejs/brace-expansion",
|
|
|
|
+ "cache-loader": "link:/usr/share/nodejs/cache-loader",
|
|
|
|
+ "clipboard": "link:/usr/share/nodejs/clipboard",
|
|
|
|
+ "codemirror": "link:/usr/share/nodejs/codemirror",
|
2020-04-08 15:34:39 +05:30
|
|
|
"codesandbox-api": "0.0.23",
|
2020-06-29 19:58:58 +05:30
|
|
|
- "compression-webpack-plugin": "^3.0.1",
|
2020-12-06 15:37:20 +05:30
|
|
|
- "copy-webpack-plugin": "^5.0.5",
|
2020-04-08 15:34:39 +05:30
|
|
|
- "core-js": "^3.6.4",
|
2021-01-04 16:46:44 +05:30
|
|
|
+ "core-js": "link:/usr/share/nodejs/core-js",
|
2020-10-25 00:47:17 +05:30
|
|
|
"cron-validator": "^1.1.1",
|
2020-01-11 19:08:58 +05:30
|
|
|
"cropper": "^2.3.0",
|
2020-12-05 20:49:43 +05:30
|
|
|
- "css-loader": "^2.1.1",
|
2020-07-02 21:28:01 +05:30
|
|
|
- "d3": "^5.16.0",
|
|
|
|
- "d3-sankey": "^0.12.3",
|
2020-04-22 19:44:27 +05:30
|
|
|
- "d3-scale": "^2.2.2",
|
2020-01-11 19:08:58 +05:30
|
|
|
- "d3-selection": "^1.2.0",
|
|
|
|
- "dateformat": "^3.0.3",
|
2020-03-12 18:50:15 +05:30
|
|
|
- "deckar01-task_list": "^2.3.1",
|
2021-01-04 16:46:44 +05:30
|
|
|
+ "css-loader": "link:/usr/share/nodejs/css-loader",
|
|
|
|
+ "d3": "link:/usr/share/nodejs/d3",
|
|
|
|
+ "d3-sankey": "link:/usr/share/nodejs/d3-sankey",
|
|
|
|
+ "d3-scale": "link:/usr/share/nodejs/d3-scale",
|
|
|
|
+ "d3-selection": "link:/usr/share/nodejs/d3-selection",
|
|
|
|
+ "dateformat": "link:/usr/share/nodejs/dateformat",
|
|
|
|
+ "deckar01-task_list": "link:/usr/share/nodejs/deckar01-task_list",
|
2020-01-11 19:08:58 +05:30
|
|
|
"diff": "^3.4.0",
|
2020-04-08 15:34:39 +05:30
|
|
|
"document-register-element": "1.14.3",
|
2021-01-04 16:46:44 +05:30
|
|
|
"dompurify": "^2.1.1",
|
|
|
|
@@ -85,79 +77,80 @@
|
2020-06-23 00:43:41 +05:30
|
|
|
"editorconfig": "^0.15.3",
|
2020-01-11 19:08:58 +05:30
|
|
|
"emoji-regex": "^7.0.3",
|
|
|
|
"emoji-unicode-version": "^0.2.1",
|
|
|
|
- "exports-loader": "^0.7.0",
|
2020-12-05 22:49:45 +05:30
|
|
|
- "file-loader": "^5.1.0",
|
2020-12-14 00:21:42 +05:30
|
|
|
- "font-awesome": "4.7.0",
|
2021-01-04 16:46:44 +05:30
|
|
|
+ "exports-loader": "link:/usr/share/nodejs/exports-loader",
|
|
|
|
+ "file-loader": "link:/usr/share/nodejs/file-loader",
|
2020-12-22 00:51:54 +05:30
|
|
|
+ "font-awesome": "link:/usr/share/nodejs/font-awesome",
|
2020-04-08 15:34:39 +05:30
|
|
|
"fuzzaldrin-plus": "^0.6.0",
|
2020-07-01 16:06:17 +05:30
|
|
|
- "glob": "^7.1.6",
|
2021-01-04 16:46:44 +05:30
|
|
|
+ "glob": "link:/usr/share/nodejs/glob",
|
2020-10-25 00:47:17 +05:30
|
|
|
"graphql": "^14.7.0",
|
2020-07-29 00:16:15 +05:30
|
|
|
"graphql-tag": "^2.10.1",
|
2020-11-24 16:42:00 +05:30
|
|
|
"immer": "^7.0.7",
|
2020-01-11 19:08:58 +05:30
|
|
|
- "imports-loader": "^0.8.0",
|
2021-01-04 16:46:44 +05:30
|
|
|
+ "imports-loader": "link:/usr/share/nodejs/imports-loader",
|
2020-07-29 00:16:15 +05:30
|
|
|
"ipaddr.js": "^1.9.1",
|
2020-01-11 19:08:58 +05:30
|
|
|
- "jed": "^1.1.1",
|
2021-01-04 16:46:44 +05:30
|
|
|
+ "jed": "link:/usr/share/nodejs/jed",
|
2020-01-11 19:08:58 +05:30
|
|
|
"jest-transform-graphql": "^2.1.0",
|
2020-09-03 11:26:00 +05:30
|
|
|
- "jquery": "^3.5.0",
|
2021-01-04 16:46:44 +05:30
|
|
|
+ "jquery": "link:/usr/share/nodejs/jquery",
|
2020-01-11 19:08:58 +05:30
|
|
|
"jquery.caret": "^0.3.1",
|
2020-04-02 20:22:06 +05:30
|
|
|
"jquery.waitforimages": "^2.2.0",
|
2020-04-08 15:34:39 +05:30
|
|
|
- "js-cookie": "^2.2.1",
|
2020-12-11 16:49:44 +05:30
|
|
|
- "js-yaml": "^3.13.1",
|
2020-01-11 19:08:58 +05:30
|
|
|
- "jszip": "^3.1.3",
|
|
|
|
- "jszip-utils": "^0.0.2",
|
2020-12-11 15:51:21 +05:30
|
|
|
- "katex": "^0.10.0",
|
2020-11-24 16:42:00 +05:30
|
|
|
- "lodash": "^4.17.20",
|
2021-01-04 16:46:44 +05:30
|
|
|
+ "js-cookie": "link:/usr/share/nodejs/js-cookie",
|
|
|
|
+ "js-yaml": "link:/usr/share/nodejs/js-yaml",
|
|
|
|
+ "jszip": "link:/usr/share/nodejs/jszip",
|
|
|
|
+ "jszip-utils": "portal:/usr/share/nodejs/jszip-utils",
|
2020-12-22 00:51:54 +05:30
|
|
|
+ "katex": "link:/usr/share/nodejs/katex",
|
2021-01-04 16:46:44 +05:30
|
|
|
+ "lodash": "link:/usr/share/nodejs/lodash",
|
2020-04-08 15:34:39 +05:30
|
|
|
"marked": "^0.3.12",
|
2020-12-11 02:57:36 +05:30
|
|
|
- "mermaid": "^8.5.2",
|
2021-01-04 16:46:44 +05:30
|
|
|
+ "mermaid": "link:/usr/share/nodejs/mermaid",
|
2020-06-23 00:43:41 +05:30
|
|
|
"mersenne-twister": "1.1.0",
|
2020-12-11 16:06:01 +05:30
|
|
|
- "minimatch": "^3.0.4",
|
2020-12-21 20:48:56 +05:30
|
|
|
- "miragejs": "^0.1.40",
|
2021-01-04 16:46:44 +05:30
|
|
|
+ "minimatch": "link:/usr/share/nodejs/minimatch",
|
|
|
|
+ "miragejs": "link:/usr/share/nodejs/miragejs",
|
2020-12-06 17:23:43 +05:30
|
|
|
"mock-apollo-client": "^0.4.0",
|
2020-07-29 00:16:15 +05:30
|
|
|
"monaco-editor": "^0.20.0",
|
|
|
|
"monaco-editor-webpack-plugin": "^1.9.0",
|
2020-10-25 00:47:17 +05:30
|
|
|
"monaco-yaml": "^2.4.1",
|
2020-11-24 16:42:00 +05:30
|
|
|
- "mousetrap": "1.6.5",
|
2020-12-07 01:51:00 +05:30
|
|
|
- "pdfjs-dist": "^2.0.943",
|
2021-01-04 16:46:44 +05:30
|
|
|
+ "mousetrap": "link:/usr/share/nodejs/mousetrap",
|
|
|
|
+ "pdfjs-dist": "link:/usr/share/nodejs/pdfjs-dist",
|
2020-01-11 19:09:17 +05:30
|
|
|
"pikaday": "^1.8.0",
|
2020-04-08 15:34:39 +05:30
|
|
|
- "popper.js": "^1.16.1",
|
2020-11-24 16:42:00 +05:30
|
|
|
- "prismjs": "^1.21.0",
|
2020-09-06 14:11:18 +05:30
|
|
|
- "prosemirror-markdown": "^1.3.0",
|
2020-02-23 17:54:41 +05:30
|
|
|
- "prosemirror-model": "^1.6.4",
|
2021-01-04 16:46:44 +05:30
|
|
|
+ "popper.js": "link:/usr/share/nodejs/popper.js",
|
|
|
|
+ "prismjs": "link:/usr/share/nodejs/prismjs",
|
|
|
|
+ "prosemirror-markdown": "link:/usr/share/nodejs/prosemirror-markdown",
|
|
|
|
+ "prosemirror-model": "link:/usr/share/nodejs/prosemirror-model",
|
2020-02-23 17:54:41 +05:30
|
|
|
"raphael": "^2.2.7",
|
2020-12-05 20:51:16 +05:30
|
|
|
- "raw-loader": "^4.0.0",
|
2021-01-04 16:46:44 +05:30
|
|
|
+ "raw-loader": "link:/usr/share/nodejs/raw-loader",
|
2020-10-25 00:47:17 +05:30
|
|
|
"select2": "3.5.2-browserify",
|
2020-12-05 20:51:16 +05:30
|
|
|
"smooshpack": "^0.0.62",
|
|
|
|
"sortablejs": "^1.10.2",
|
2020-12-06 00:42:19 +05:30
|
|
|
"sql.js": "^0.4.0",
|
|
|
|
"stickyfilljs": "^2.1.0",
|
|
|
|
"string-hash": "1.1.3",
|
|
|
|
- "style-loader": "^1.1.3",
|
2021-01-04 16:46:44 +05:30
|
|
|
+ "style-loader": "link:/usr/share/nodejs/style-loader",
|
2020-11-24 16:42:00 +05:30
|
|
|
"swagger-ui-dist": "^3.32.4",
|
2020-01-11 19:08:58 +05:30
|
|
|
"three": "^0.84.0",
|
|
|
|
- "three-orbit-controls": "^82.1.0",
|
|
|
|
- "three-stl-loader": "^1.0.4",
|
2020-09-06 14:11:18 +05:30
|
|
|
- "timeago.js": "^4.0.2",
|
2021-01-04 16:46:44 +05:30
|
|
|
+ "three-orbit-controls": "link:/usr/share/nodejs/three-orbit-controls",
|
|
|
|
+ "three-stl-loader": "link:/usr/share/nodejs/three-stl-loader",
|
|
|
|
+ "timeago.js": "link:/usr/share/nodejs/timeago.js",
|
2020-01-11 19:08:58 +05:30
|
|
|
"tiptap": "^1.8.0",
|
|
|
|
"tiptap-commands": "^1.4.0",
|
|
|
|
"tiptap-extensions": "^1.8.0",
|
2020-07-29 00:16:15 +05:30
|
|
|
"tributejs": "5.1.3",
|
2020-04-08 15:34:39 +05:30
|
|
|
- "url-loader": "^3.0.0",
|
2020-12-11 01:42:18 +05:30
|
|
|
- "uuid": "8.1.0",
|
2021-01-04 16:46:44 +05:30
|
|
|
+ "url-loader": "link:/usr/share/nodejs/url-loader",
|
|
|
|
+ "uuid": "link:/usr/share/nodejs/uuid",
|
2020-01-11 19:08:58 +05:30
|
|
|
"visibilityjs": "^1.2.4",
|
2021-01-04 16:46:44 +05:30
|
|
|
- "vue": "^2.6.12",
|
2020-12-22 00:51:54 +05:30
|
|
|
+ "vue": "link:/usr/share/nodejs/vue",
|
2020-05-24 23:50:06 +05:30
|
|
|
"vue-apollo": "^3.0.3",
|
2021-01-04 16:46:44 +05:30
|
|
|
"vue-loader": "^15.9.3",
|
|
|
|
"vue-router": "3.4.5",
|
|
|
|
- "vue-template-compiler": "^2.6.12",
|
2020-12-22 00:51:54 +05:30
|
|
|
+ "vue-template-compiler": "link:/usr/share/nodejs/vue-template-compiler",
|
2020-03-12 18:50:15 +05:30
|
|
|
"vue-virtual-scroll-list": "^1.4.4",
|
2020-01-11 19:08:58 +05:30
|
|
|
"vuedraggable": "^2.23.0",
|
2020-11-24 16:42:00 +05:30
|
|
|
"vuex": "^3.5.1",
|
2020-12-24 20:32:23 +05:30
|
|
|
"web-vitals": "^0.2.4",
|
2020-04-08 15:34:39 +05:30
|
|
|
- "webpack": "^4.42.0",
|
|
|
|
- "webpack-bundle-analyzer": "^3.6.0",
|
|
|
|
- "webpack-cli": "^3.3.11",
|
|
|
|
- "webpack-stats-plugin": "^0.3.1",
|
2020-02-23 17:54:41 +05:30
|
|
|
- "worker-loader": "^2.0.0",
|
2020-07-02 01:55:08 +05:30
|
|
|
- "xterm": "3.14.5"
|
2021-01-04 16:46:44 +05:30
|
|
|
+ "webpack-stats-plugin": "link:/usr/share/nodejs/webpack-stats-plugin",
|
|
|
|
+ "worker-loader": "link:/usr/share/nodejs/worker-loader",
|
|
|
|
+ "xterm": "portal:/usr/share/nodejs/xterm",
|
|
|
|
+ "loader-utils": "link:/usr/share/nodejs/loader-utils",
|
2020-12-24 20:32:23 +05:30
|
|
|
+ "mkdirp": "link:/usr/share/nodejs/mkdirp",
|
2021-01-04 16:46:44 +05:30
|
|
|
+ "postcss": "link:/usr/share/nodejs/postcss",
|
|
|
|
+ "schema-utils": "link:/usr/share/nodejs/schema-utils"
|
2020-01-11 19:08:58 +05:30
|
|
|
},
|
2020-02-23 17:54:41 +05:30
|
|
|
"devDependencies": {
|
2020-10-25 00:47:17 +05:30
|
|
|
},
|
2020-04-25 00:15:18 +05:30
|
|
|
--- a/babel.config.js
|
|
|
|
+++ b/babel.config.js
|
2020-10-25 00:47:17 +05:30
|
|
|
@@ -34,9 +34,12 @@
|
2020-04-25 00:15:18 +05:30
|
|
|
// include stage 3 proposals
|
|
|
|
const plugins = [
|
|
|
|
'@babel/plugin-syntax-import-meta',
|
|
|
|
+ '@babel/plugin-syntax-dynamic-import',
|
|
|
|
'@babel/plugin-proposal-class-properties',
|
|
|
|
'@babel/plugin-proposal-json-strings',
|
|
|
|
'@babel/plugin-proposal-private-methods',
|
|
|
|
+ '@babel/plugin-proposal-optional-chaining',
|
|
|
|
+ '@babel/plugin-proposal-nullish-coalescing-operator',
|
2020-10-25 00:47:17 +05:30
|
|
|
// See: https://gitlab.com/gitlab-org/gitlab/-/issues/229146
|
|
|
|
'@babel/plugin-transform-arrow-functions',
|
2020-04-25 00:15:18 +05:30
|
|
|
'lodash',
|
2020-12-07 01:51:00 +05:30
|
|
|
--- a/app/assets/javascripts/pdf/index.vue
|
|
|
|
+++ b/app/assets/javascripts/pdf/index.vue
|
|
|
|
@@ -1,6 +1,6 @@
|
|
|
|
<script>
|
|
|
|
import pdfjsLib from 'pdfjs-dist/build/pdf';
|
|
|
|
-import workerSrc from 'pdfjs-dist/build/pdf.worker.min';
|
|
|
|
+import workerSrc from 'pdfjs-dist/build/pdf.worker';
|
|
|
|
|
|
|
|
import page from './page/index.vue';
|
|
|
|
|
2020-12-14 00:21:42 +05:30
|
|
|
--- a/config/application.rb
|
|
|
|
+++ b/config/application.rb
|
2021-01-04 16:46:44 +05:30
|
|
|
@@ -218,7 +218,7 @@
|
2020-12-14 00:21:42 +05:30
|
|
|
config.assets.precompile << "illustrations/*.svg"
|
|
|
|
|
|
|
|
# Import Fontawesome fonts
|
|
|
|
- config.assets.paths << "#{config.root}/node_modules/font-awesome/fonts"
|
|
|
|
+ config.assets.paths << "/usr/share/nodejs/font-awesome/fonts"
|
|
|
|
config.assets.precompile << "fontawesome-webfont.woff2"
|
|
|
|
config.assets.precompile << "fontawesome-webfont.woff"
|
|
|
|
|