mirror of
https://github.com/cypress-io/cypress.git
synced 2026-01-30 11:00:35 -06:00
Co-authored-by: Jessica Sachs <jess@jessicasachs.io> Co-authored-by: Rocky <25568640+rockindahizzy@users.noreply.github.com>
19 lines
396 B
JavaScript
19 lines
396 B
JavaScript
import { createEntries } from '@cypress/mount-utils/create-rollup-entry.mjs'
|
|
|
|
const config = {
|
|
external: [
|
|
'react',
|
|
'react-dom',
|
|
'react-dom/client',
|
|
],
|
|
output: {
|
|
globals: {
|
|
react: 'React',
|
|
'react-dom': 'ReactDOM',
|
|
'react-dom/client': 'ReactDOM/client',
|
|
},
|
|
},
|
|
}
|
|
|
|
export default createEntries({ formats: ['es', 'cjs'], input: 'src/index.ts', config })
|