fix(react): correctly resolve babel-plugin-transform-async-to-promises
Closes #4352
This commit is contained in:
parent
a10c258202
commit
e25159d915
@ -222,7 +222,7 @@ export function createRollupOptions(
|
||||
plugins: [
|
||||
config.format === 'esm'
|
||||
? undefined
|
||||
: 'babel-plugin-transform-async-to-promises',
|
||||
: require.resolve('babel-plugin-transform-async-to-promises'),
|
||||
].filter(Boolean),
|
||||
}),
|
||||
commonjs(),
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user