Enable relative content paths for the oxide engine (#10621)

* enable `relativeContentPathsByDefault` for the `oxide` engine

* update tests to reflect `relative` change in the `oxide` engine

* update changelog
This commit is contained in:
Robin Malfait 2023-02-17 21:42:10 +01:00 • committed by GitHub
parent c8bf2d49b6
commit 962eb52ec6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 41 additions and 16 deletions

View file

@ -8,6 +8,9 @@ let defaults = {
get disableColorOpacityUtilitiesByDefault() {
return env.OXIDE
},
get relativeContentPathsByDefault() {
return env.OXIDE
},
}
let featureFlags = {

View file

@ -1,3 +1,4 @@
import { flagEnabled } from '../featureFlags'
import log, { dim } from './log'
export function normalizeConfig(config) {
@ -189,7 +190,7 @@ export function normalizeConfig(config) {
return content.relative
}
return config.future?.relativeContentPathsByDefault ?? false
return flagEnabled(config, 'relativeContentPathsByDefault')
})(),
files: (() => {