add unbundled es6 build with jsx file extensions#1537
add unbundled es6 build with jsx file extensions#1537cookpete merged 3 commits intocookpete:masterfrom
Conversation
|
Excited to see this merged. Just came across this problem while migrating from webpack to vite. |
|
This is good, but would also like to see a import ReactPlayer from 'react-player'with |
|
@DouglasDev @solidiquis @wallw-teal Hello! Any idea when this will be merged? |
Write exactly what you just wrote hahaha, this solved my issue on Vite instantly. |
|
Published in |
Note that this was reverted in |
|
@cookpete I believe you need to add typescript definitions to the |
Fixes: #1443
This command copies the src files to a directory called 'es6', excluding the demo directory, and renames 'js' files to 'jsx' files if they use jsx. This can then be imported into a project that uses vite this way:
This should allow lazy imports as well.
Perhaps the readme should be updated? Not sure what exactly to write.