<!-- ⚡️ katchow! We 💛 issues. 🚨 Your issue will be CLOSED if: - This template is removed - Parts of this template are removed 👉🏽 Need help or tech support? Please don't open an issue! Head to https://is.gd/rollup_chat or https://stackoverflow.com/questions/tagged/rollupjs ❤️ Rollup? Please consider supporting our collective: 👉 https://opencollective.com/rollup/donate --> - Rollup Plugin Name: plugin-commonjs - Rollup Plugin Version: 17.0.0 - Rollup Version: 2.3.4 - Operating System (or Browser): Windows/Chrome - Node Version: 15.5.1 - Link to reproduction _(⚠️ read below)_: https://repl.it/@RhardRoman/rollup-plugin-repro <!-- 🚨 Issues WITHOUT a valid reproduction WILL BE CLOSED! Please provide one by: 1. Using the REPL.it plugin reproduction template at https://repl.it/@rollup/rollup-plugin-repro 2. Provide a minimal repository link (Read https://git.io/fNzHA for instructions). Please use NPM for installing dependencies! These may take more time to triage than the other options. 3. Using the Rollup REPL at https://rollupjs.org/repl/ ⚠️ ZIP Files are unsafe and maintainers will NOT download them. --> ### Expected Behavior The project can be build and viewed in Chrome ### Actual Behavior After updating plugin-commonjs to 17.0.0 and using @aws-amplify/core the Chrome throws an error: ```js Uncaught ReferenceError: exports is not defined at CryptoOperation.js:2 at main.js:31 ``` Error source: ```js "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); //# sourceMappingURL=CryptoOperation.js.map ``` ### Additional Information Just adding the Amplify core lib stops the project from working. With 16.0.0 everything is OK. ```js import Amplify from '@aws-amplify/core'; Amplify.configure(); ``` <!-- Most issues can be expressed or demonstrated through the REPL or a repository. However, the situation may arise where some small code snippets also need to be provided. In that situation, please add your code below using Fenced Code Blocks (https://help.github.com/articles/creating-and-highlighting-code-blocks/) -->