orenelbaum / babel-plugin-solid-undestructure

A Babel plugin for SolidJS that allows you to destructure component props without losing reactivity.
95 stars 3 forks source link

Change the macro import path to a dedicated empty npm package #10

Closed orenelbaum closed 1 year ago

orenelbaum commented 1 year ago

Right now the component CTF is imported from "babel-plugin-solid-undestructure". I think that this exposes a risk that the Babel plugin itself will be sent to the client. Therefore I want to change the import path to something like "undestructure-macros". I'll create an npm package which doesn't have any code other than code that throws an error. Once I implement that I'll update the version to 1.0 and I'll consider the plugin production ready. Of course if anyone wants to make a PR you're welcome to do so.

orenelbaum commented 1 year ago

https://github.com/orenelbaum/babel-plugin-solid-undestructure/commit/66aebc128f087f9082a336e4752b5c590d0db42b