faceyspacey

faceyspacey/babel-plugin-universal-...

🍾 universal(props => import(`./${props.page}`)) + dual css/js imports

JavaScript
115
38
MIT License

This Babel plugin transforms `import()` statements used with `react-universal-component` to automatically generate webpack chunk names and provide the necessary paths/imports for universal rendering. It simplifies dynamic imports by handling both static and dynamic import paths, allowing you to pass props like `page` to components without manually wrapping imports in functions. The plugin is primarily for React developers using code-splitting and universal rendering, particularly those building applications with `react-universal-component` who want automatic chunk naming and simplified dynamic imports.

Total donated
Undistributed
Share with your subscribers:

Recipients

How the donated funds are distributed

Support the dependencies

Support the repos that depend on this repository

Top contributors

faceyspacey's profile
faceyspacey
59 contributions
ScriptedAlchemy's profile
ScriptedAlchemy
44 contributions
dependabot[bot]'s profile
dependabot[bot]
12 contributions
hulkish's profile
hulkish
7 contributions
konpikwastaken's profile
konpikwastaken
5 contributions
motiz88's profile
motiz88
4 contributions
okcoker's profile
okcoker
3 contributions
baldurh's profile
baldurh
1 contributions
hedgepigdaniel's profile
hedgepigdaniel
1 contributions
egorvoronov's profile
egorvoronov
1 contributions

Recent events

Kivach works on the Obyte network, and therefore you can track all donations.

No events yet