From a62822c2980108863dec158887522304c176a4fb Mon Sep 17 00:00:00 2001 From: Andrew Meyer Date: Fri, 11 Aug 2023 16:06:12 +0200 Subject: [PATCH] Fix bundler command and remove unused plugin (#6062) --- packages/realm-react/package.json | 3 +-- packages/realm-react/rollup.config.js | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/packages/realm-react/package.json b/packages/realm-react/package.json index 98ac66416a..6d536ccb12 100644 --- a/packages/realm-react/package.json +++ b/packages/realm-react/package.json @@ -22,7 +22,7 @@ "../realm-common:bundle" ], "files": [ - "rollup.config.mjs", + "rollup.config.js", "src/**/*.ts", "src/**/*.tsx" ], @@ -54,7 +54,6 @@ "@babel/preset-typescript": "^7.15.0", "@babel/runtime": "^7.15.4", "@realm/app-importer": "*", - "@rollup/plugin-commonjs": "^25.0.3", "@rollup/plugin-node-resolve": "^15.0.1", "@rollup/plugin-typescript": "^9.0.2", "@testing-library/jest-native": "^4.0.13", diff --git a/packages/realm-react/rollup.config.js b/packages/realm-react/rollup.config.js index 4f4aeb4619..fd06be52e5 100644 --- a/packages/realm-react/rollup.config.js +++ b/packages/realm-react/rollup.config.js @@ -16,7 +16,6 @@ // //////////////////////////////////////////////////////////////////////////// -import commonjs from "@rollup/plugin-commonjs"; import nodeResolve from "@rollup/plugin-node-resolve"; import typescript from "@rollup/plugin-typescript"; import dts from "rollup-plugin-dts"; @@ -38,7 +37,7 @@ export default [ sourcemap: true, }, ], - plugins: [commonjs(), nodeResolve(), typescript({ noEmitOnError: true })], + plugins: [nodeResolve(), typescript({ noEmitOnError: true })], external: ["realm", "react", "@realm/common", "lodash"], }, {