Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Selective babel compilation using directives #286

@aminya

Description

@aminya

It would be awesome if there is a mode in the solid plugins in which a directive like 'solid-js' informs Babel that this file is using solid-js and so it should compile it using solid. This mode should ignore other files that do not have this directive.

This feature allows the incremental introduction of solid-js into a codebase that is already using other JSX libraries like React, etc.

I have written a babel plugin like this before (for other purposes). If you are interested, I can make a PR to help with the implementation.

https://github.com/atom-ide-community/babel-plugin-transform-not-strict

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions