How to add a babel plugin #6097
fortesp
started this conversation in
Stencil Testing
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I am trying to create a rollup plugin that gets JSX components (as JSX) before they are transpiled to .js in order to add "data-testid" attribute for each HTML element of sub component in each stencil component.
I already tried to add something like this:
The rollup is called, but the code that comes out its not in JSX anymore and because of that i think the babel plugin does not do anything. How to get before and not after this phase?
Thank you.
Beta Was this translation helpful? Give feedback.
All reactions