Skip to content

Commit 22f7e09

Browse files
committed
TDBM: Cypress bundle - use browser module versions (uuid)
1 parent d92c417 commit 22f7e09

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

test-db-manager/rollup.config.mjs

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,16 @@ import { nodeResolve } from '@rollup/plugin-node-resolve';
33
import typescript from '@rollup/plugin-typescript';
44
import { dts } from 'rollup-plugin-dts';
55

6-
const commonPlugins = [
7-
nodeResolve({ exportConditions: ['node'] }),
8-
commonjs({
9-
include: ['./index.js', /node_modules/],
10-
}),
11-
typescript({
12-
tsconfig: './tsconfig.json',
13-
compilerOptions: { declarationDir: './types' },
14-
}),
15-
];
6+
const resolveNodeModulesPlugin = nodeResolve({ exportConditions: ['node'] });
7+
const commonJsPlugin = commonjs({
8+
include: ['./index.js', /node_modules/],
9+
});
10+
const tsPlugin = typescript({
11+
tsconfig: './tsconfig.json',
12+
compilerOptions: { declarationDir: './types' },
13+
});
14+
15+
const commonPlugins = [resolveNodeModulesPlugin, commonJsPlugin, tsPlugin];
1616

1717
// Mark node modules as externals. Needed for knex's optional drivers.
1818
const commonExternals = [/node_modules/];
@@ -94,7 +94,7 @@ const config = [
9494
{ file: './ts-dist/CypressSpecExports.js', format: 'es' },
9595
{ file: 'dist/CypressSpecExports.js', format: 'cjs' },
9696
],
97-
plugins: commonPlugins,
97+
plugins: [nodeResolve({ browser: true }), commonJsPlugin, tsPlugin],
9898
},
9999
{
100100
input: './src/CypressSpecExports.ts',

0 commit comments

Comments
 (0)