Skip to content
This repository was archived by the owner on Aug 4, 2021. It is now read-only.
This repository was archived by the owner on Aug 4, 2021. It is now read-only.

Impossible to use loose mode for classes #47

@developit

Description

@developit

L20 makes it impossible to use the class transformer's loose specified by presets passed to rollup-plugin-babel. This is because the class transform is manually added to the plugins list, which takes precedence over preset-provided plugins.

Is this intentional? If not, what about something like this?

const classCheck = transform( 'class Foo {}', options ).code;
if (~classCheck.indexOf('class Foo')) {
    options.plugins.push( classes );
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions