frigate.web: fix build on Node 22.12

Node 22.12 introduced [a semi-breaking change][1] (even though it’s not
documented as such, it’s clearly breaking this). Pass a flag to Node to
disable it. See also [related issue][2].

[1]: https://nodejs.org/en/blog/release/v22.12.0#requireesm-is-now-enabled-by-default
[2]: https://github.com/nodejs/node/issues/56155#issuecomment-2525032281
This commit is contained in:
Andrew Marshall
2025-01-23 08:22:25 -05:00
parent 9e4d5190a9
commit 60e660a084
+2
View File
@@ -28,6 +28,8 @@ buildNpmPackage {
npmDepsHash = "sha256-PLs3oCWQjK38eHgdQt2Qkj7YqkfanC8JnLMpzMjNfxU=";
env.NODE_OPTIONS = "--no-experimental-require-module";
installPhase = ''
cp -rv dist/ $out
'';