We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
extract.DEFAULT
1 parent 92df04d commit 84a6c5dCopy full SHA for 84a6c5d
src/util/normalizeConfig.js
@@ -170,7 +170,7 @@ export function normalizeConfig(config) {
170
171
let extractors = {}
172
173
- extractors.DEFAULT = (() => {
+ let defaultExtractor = (() => {
174
if (config.purge?.options?.defaultExtractor) {
175
return config.purge.options.defaultExtractor
176
}
@@ -182,6 +182,10 @@ export function normalizeConfig(config) {
182
return undefined
183
})()
184
185
+ if (defaultExtractor !== undefined) {
186
+ extractors.DEFAULT = defaultExtractor
187
+ }
188
+
189
// Functions
190
if (typeof extract === 'function') {
191
extractors.DEFAULT = extract
0 commit comments