Include babel-macros-plugin

β€” Roadmap Card

Description

This is the definition of babel-macros-plugin:

babel-plugin-macros defines a standard interface for libraries that want to use compile-time code transformation without requiring the user to add a babel plugin to their build system

This means that we will be adding support for many existing packages that usually would require a babel plugin. Here is a list: https://github.com/jgierer12/awesome-babel-macros

User Stories

As a Frontity developer
I want to use packages that support babel-maros-plugin
so that I don’t need to deal with babel configurations

Possible solution

It is as simple as adding the plugin to babel:

{
  "plugins": ["babel-macros-plugin"]
}

This has been released as part of @frontity/core@1.5.0: Read the full Release Announcement.

Now it’s possible to use babel-macros-plugin in Frontity :tada: :smile:

1 Like