File: node18-import.patch

package info (click to toggle)
chromium 142.0.7444.175-1~deb12u1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm-proposed-updates
  • size: 6,303,984 kB
  • sloc: cpp: 35,488,370; ansic: 7,479,680; javascript: 4,259,373; python: 1,466,844; xml: 757,444; asm: 710,716; pascal: 187,980; sh: 89,247; perl: 88,690; objc: 79,984; sql: 56,984; cs: 42,192; fortran: 24,137; makefile: 22,919; tcl: 15,277; php: 14,018; yacc: 9,005; ruby: 7,553; awk: 3,720; lisp: 3,096; lex: 1,330; ada: 727; jsp: 228; sed: 36
file content (18 lines) | stat: -rw-r--r-- 922 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
RuntimeError: Command '/chromium-136.0.7103.48/third_party/node/linux/node-linux-x64/bin/node /chromium-136.0.7103.48/out/Release/../../ui/webui/resources/tools/minify_js.js --in_folder /chromium-136.0.7103.48/out/Release/gen/chrome/browser/resources/gaia_auth_host/build_injected_scripts_bundled --out_folder /chromium-136.0.7103.48/out/Release/gen/chrome/browser/resources/gaia_auth_host saml_injected.rollup.js' failed
(node:54598) Warning: To load an ES module, set "type": "module" in the package.json or use the .mjs extension.
(Use `node --trace-warnings ...` to show where the warning was created)
/chromium-136.0.7103.48/ui/webui/resources/tools/minify_js.js:11
import assert from 'node:assert';
^^^^^^

SyntaxError: Cannot use import statement outside a module


--- /dev/null
+++ b/ui/webui/resources/tools/package.json
@@ -0,0 +1,5 @@
+{
+  "name": "webui-tools",
+  "version": "1.0.0",
+  "type": "module"
+}