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

Babel doesn't transform/transpile template code #406

Closed
@Nerixyz

Description

@Nerixyz

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions