best approach to use rollup instead of webpack to output esm build of components #6103
Replies: 3 comments
-
Context: I want to generate esm Module because I use dynamic import inside some components. |
Beta Was this translation helpful? Give feedback.
-
I followed the example here: Executing the pipelines |
Beta Was this translation helpful? Give feedback.
-
in #4727 @benjgil said bit wil target esm build by default in a near futur. |
Beta Was this translation helpful? Give feedback.
-
Hi everyone,
I would like my react components to be build as esm module with rollup.
after lot of time spent on the doc, I would try the following:
bit create react-env envs/react-rollup-env
bit env set path/to/my-component envs/react-rollup-env
bit create build-task modules/rollup-task
is this a good start ?
Thank you
Beta Was this translation helpful? Give feedback.
All reactions