mirror of
https://github.com/owncloud/ocis
synced 2026-04-25 17:25:21 +02:00
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:
10
changelog/unreleased/fix-idp-babel-freebsd.md
Normal file
10
changelog/unreleased/fix-idp-babel-freebsd.md
Normal 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
|
||||
@@ -16,7 +16,7 @@
|
||||
},
|
||||
"babel": {
|
||||
"presets": [
|
||||
"react-app"
|
||||
["react-app", { "absoluteRuntime": false }]
|
||||
]
|
||||
},
|
||||
"browserslist": {
|
||||
|
||||
Reference in New Issue
Block a user