Enhancement: Combine React packages into one dist file and document installation instructions.
My goal is to make a single react-core.umd.js and react-core.css bundle with no external dependencies on react-icons, react-tokens, or react-styles.
These are the problems I'm facing while using rollup with the rollup-plugin-node-resolve, rollup-plugin-commonjs, and rollup-plugin-scss plugins:
tabbable and xtendexports["default"] = _default; so rollup can correctly bundle icons into react-coreTo increase adoption, lower the adoption barrier, the better. It should be as easy as:
1) download the example template (from a couple of very simple designs with very few elements),
2) download tarball/use npm,
3) modify the static elements within the downloaded template to your needs
4) deploy and everything works
It should be available for html/css format as well as that's what a lot of beginners start with. In v3, there were html/css example templates but had too many components e.g. index.html for vertical nav was >1700 lines
@redallen focus-trap-react: "write correct types for it so we can use ESM imports for it" I did that for you, https://github.com/davidtheclark/focus-trap-react/pull/68 we want to use patternfly with snowpack so we need all imports to be ESM imports
Thanks @edewit ! I looked more through their implementation and I'm not a very big fan so I wrote my own that is sufficient for PatternFly. Feel free to use it in the meantime!
@redallen any eta when that will be merged into patternfly?
I'm hoping #3967 gets merged today or tomorrow.
@edewit Freshly merged, you can see our implementation here.
I've just gotten an HTML page working with our UMD bundle (exciting!) and I'll submit a PR shortly for that to close this issue.
Closed by #3971
@edewit @ishuverma Checkout http://patternfly-react.surge.sh/umd.html for how to get started!
Most helpful comment
@redallen focus-trap-react: "write correct types for it so we can use ESM imports for it" I did that for you, https://github.com/davidtheclark/focus-trap-react/pull/68 we want to use patternfly with snowpack so we need all imports to be ESM imports