Skip to content

Commit 317410a

Browse files
skjnldsvnextcloud-command
authored andcommitted
fix(webpack): missing process
Signed-off-by: skjnldsv <skjnldsv@protonmail.com> Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
1 parent e158f3f commit 317410a

7 files changed

Lines changed: 13 additions & 6 deletions

File tree

dist/core-common.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/core-common.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/files-main.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/files-main.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package-lock.json

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,7 @@
9090
"p-queue": "^7.4.1",
9191
"path": "^0.12.7",
9292
"pinia": "^2.3.1",
93+
"process": "^0.11.10",
9394
"query-string": "^9.0.0",
9495
"regenerator-runtime": "^0.14.1",
9596
"select2": "3.5.1",

webpack.common.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,11 @@ module.exports = {
173173
// break if two separate versions of the library are used (e.g. bundled one
174174
// and global one).
175175
ICAL: 'ical.js',
176+
177+
// Make a global `process` variable that points to the `process` package,
178+
// because the `util` package expects there to be a global variable named `process`.
179+
// Thanks to https://stackoverflow.com/a/65018686/14239942
180+
process: 'process/browser.js'
176181
}),
177182

178183
new WorkboxPlugin.GenerateSW({

0 commit comments

Comments
 (0)