From 075bbc448cfb2bb209e86d6b1ea6460df23a9f64 Mon Sep 17 00:00:00 2001 From: Stefan Dirix Date: Wed, 22 Dec 2021 22:28:57 +0100 Subject: [PATCH] Fix React Vanilla build Lerna removed the empty dependency attribute of the React Vanilla package.json during the release. The React Vanilla rollup build tried to access this attribute and therefore crashed. This is now fixed. --- packages/vanilla/rollup.config.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/vanilla/rollup.config.js b/packages/vanilla/rollup.config.js index db2c9fbaf..7479309a4 100644 --- a/packages/vanilla/rollup.config.js +++ b/packages/vanilla/rollup.config.js @@ -7,7 +7,7 @@ const packageJson = require('./package.json'); const baseConfig = { input: 'src/index.ts', external: [ - ...Object.keys(packageJson.dependencies), + ...Object.keys(packageJson.dependencies ?? {}), ...Object.keys(packageJson.peerDependencies), 'react', /^lodash\/.*/,