diff --git a/changelog/unreleased/fix-idp-babel-freebsd.md b/changelog/unreleased/fix-idp-babel-freebsd.md new file mode 100644 index 00000000000..f0e0210d310 --- /dev/null +++ b/changelog/unreleased/fix-idp-babel-freebsd.md @@ -0,0 +1,10 @@ +Bugfix: Fix IDP build on FreeBSD by disabling absolute Babel runtime + +The `babel-preset-react-app` preset defaults to `absoluteRuntime: true`, +which hardcodes absolute paths to `@babel/runtime` helpers. These paths +fail to resolve on non-Linux platforms like FreeBSD. Setting +`absoluteRuntime: false` makes Babel resolve the runtime relative to +the source file, which works across all platforms. + +https://github.com/owncloud/ocis/pull/12114 +https://github.com/owncloud/ocis/issues/12065 diff --git a/services/idp/package.json b/services/idp/package.json index 9481cf71160..3ef86fefc59 100644 --- a/services/idp/package.json +++ b/services/idp/package.json @@ -16,7 +16,7 @@ }, "babel": { "presets": [ - "react-app" + ["react-app", { "absoluteRuntime": false }] ] }, "browserslist": {