Closed ryanfitzer closed 5 years ago
Since my project is creating an esm
build and react-theme-provider
is provided as a cjs
module, I was able to resolve the issue by adding rollup-plugin-commonjs to my rollup.config.js
configuration.
Any plans to provide an ECMAScript module version in the future?
Environment
node@12.10.0
@callstack/react-theme-provider@3.0.3
rollup-plugin-babel@4.3.3
Description
When compiling via Rollup, I get the following error:
I've tried enabling Babel to both ignore and include the
node_modules
directory.This runs fine in Storybook (including static build). Not sure what I'm missing.
I see that
node_modules/@callstack/react-theme-provider/lib/index.js
has the following on line 7:Reproducible Demo
theme.js
example-button.js