Skip to content

v1.0

Choose a tag to compare

@orenelbaum orenelbaum released this 06 Dec 14:42
· 4 commits to main since this release

Changes:

  • import { component } from 'babel-plugin-solid-undestructure' => import { component } from 'undestructure-macros'

This plugin should be production ready now.
Until now the component CTF was imported from babel-plugin-solid-undestructure.
This made me paranoid that people would bundle the actual Babel plugin into their frontend for whatever reason.
That's why I added a macro placeholder package undestructure-macros. Now the component macro is imported from there.
The only code the package actually contains is code that that throws an error in case the package was bundled into the app for whatever reason.
However this is an extra safety measure, since even if you import from undestructure-macros and don't run the plugin so that the import remains in your code, vite should fail to bundle at build time and throw an error.