From 3c0477a894ff460aa4db0b3a67087519b530040d Mon Sep 17 00:00:00 2001 From: Darcy Ye Date: Mon, 24 Apr 2023 16:19:23 +0800 Subject: [PATCH] fix(connector): support crypto.getRandomValues in connectors (#3744) * fix(connector): enable node crypto.getRandomValues * refactor: remove comments --------- Co-authored-by: Gao Sun --- packages/connectors/templates/preset/rollup.config.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/connectors/templates/preset/rollup.config.js b/packages/connectors/templates/preset/rollup.config.js index d7dcc8283..29a81ed5d 100644 --- a/packages/connectors/templates/preset/rollup.config.js +++ b/packages/connectors/templates/preset/rollup.config.js @@ -14,7 +14,7 @@ const configs = [ external: ['zod', 'got', '@logto/connector-kit'], plugins: [ typescript({ tsconfig: 'tsconfig.build.json' }), - nodeResolve(), + nodeResolve({ exportConditions: ['node'] }), commonjs(), json(), summary(),