Skip to content
This repository has been archived by the owner on Jan 18, 2022. It is now read-only.

Babel doesn't transform/transpile template code #406

Closed
Nerixyz opened this issue Oct 24, 2020 · 0 comments · Fixed by #407
Closed

Babel doesn't transform/transpile template code #406

Nerixyz opened this issue Oct 24, 2020 · 0 comments · Fixed by #407

Comments

@Nerixyz
Copy link
Contributor

Nerixyz commented Oct 24, 2020

Version

6.0.0-beta.10

Reproduction link

https://github.com/Nerixyz/vue-rollup-babel-issue

Steps to reproduce

Use @rolup/plugin-babel and @babel/preset-env. Create a component where the template contains code that's not yet supported by a browser (thus needed to be transformed). Write similar unsupported code in a JavaScript file.

What is expected?

Both unsupported versions should be transformed to work in the targeted browser.

What is actually happening?

Only code in the JavaScript file will get transformed, not the template code.


I've seen a similar issue where the solution was to specify the extensions for the plugin, which I did, however the issue persists. I'd guess I've missed to specify some flag.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant