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: [
|
plugins: [
|
||||||
config.format === 'esm'
|
config.format === 'esm'
|
||||||
? undefined
|
? undefined
|
||||||
: 'babel-plugin-transform-async-to-promises',
|
: require.resolve('babel-plugin-transform-async-to-promises'),
|
||||||
].filter(Boolean),
|
].filter(Boolean),
|
||||||
}),
|
}),
|
||||||
commonjs(),
|
commonjs(),
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user