Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Commonjs build breaks rollup (vitejs)

See original GitHub issue

Hello, any chance we could export styled-react-modal as an esm module instead of commonjs (or both), this is causing issues when compiling with rollup (vitejs).


Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:2
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

AlexanderRicheycommented, Oct 27, 2021

Sorry for taking a while to get back to you. I hope to have some time to look into this over the next couple weekends or so—busy times at my day job at the moment. I’d be happy to review a PR in the meantime if anyone has the time, but otherwise I’m hoping to address all the open issues before the new year.

AlexanderRicheycommented, Feb 3, 2022
Read more comments on GitHub >

github_iconTop Results From Across the Web

Build Options - Vite
Options to pass on to @rollup/plugin-commonjs. build.dynamicImportVarsOptions #. Type: RollupDynamicImportVarsOptions; Related: Dynamic Import. Options to pass ...
Read more >
How can I include dagre/graphlib in a vue.js site built with vite
This seems to be to do with the import mechanism of the commonjs libraries. I install npm install @rollup/plugin-commonjs --save-dev and moved ...
Read more >
Vite 3.0 vs. Create React App: Comparison and migration guide
CommonJS ; Asynchronous Module Definition (AMD) API. webpack uses any of these JavaScript module systems to combine assets and modules into one ...
Read more >
Adding Vite to Your Existing Web App | CSS-Tricks
Tell Vite where to put the generated bundle, what to call it, and what formats to build. Note that I'm using CommonJS here...
Read more >
vite exports is not defined | The AI Search Engine You Control
vitejs /viteBundling SSR Modules using CommonJS exports alias results in ... rollupOptions: {} vite:config } vite:config } +9ms vite v2.8.5 building for ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Post

No results found

github_iconTop Related Hashnode Post

No results found