Merge pull request #12114 from paul43210/fix/idp-babel-freebsd

fix(idp): disable absolute Babel runtime paths for FreeBSD compatibility
This commit is contained in:
Martin
2026-03-16 11:21:16 +01:00
committed by GitHub
2 changed files with 11 additions and 1 deletions

View File

@@ -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

View File

@@ -16,7 +16,7 @@
},
"babel": {
"presets": [
"react-app"
["react-app", { "absoluteRuntime": false }]
]
},
"browserslist": {