File tree 1 file changed +5
-1
lines changed
packages/plugin-legacy/src
1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ import type {
23
23
types as BabelTypes ,
24
24
} from '@babel/core'
25
25
import colors from 'picocolors'
26
- import { loadConfig as browserslistLoadConfig } from 'browserslist'
26
+ import browserslist from 'browserslist'
27
27
import type { Options } from './types'
28
28
import {
29
29
detectModernBrowserCode ,
@@ -45,6 +45,10 @@ async function loadBabel() {
45
45
return babel
46
46
}
47
47
48
+ // The requested module 'browserslist' is a CommonJS module
49
+ // which may not support all module.exports as named exports
50
+ const { loadConfig : browserslistLoadConfig } = browserslist
51
+
48
52
// Duplicated from build.ts in Vite Core, at least while the feature is experimental
49
53
// We should later expose this helper for other plugins to use
50
54
function toOutputFilePathInHtml (
You can’t perform that action at this time.
0 commit comments