Skip to content
This repository has been archived by the owner on Mar 5, 2023. It is now read-only.

Commit

Permalink
Add support for babel macros used in machine code
Browse files Browse the repository at this point in the history
  • Loading branch information
danielkcz committed Jan 7, 2021
1 parent 2c3b7de commit 9d50e15
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/red-walls-allow.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'xstate-codegen': patch
---

Add support for babel macros used in machine code.
1 change: 1 addition & 0 deletions packages/xstate-compiled/src/extractMachines.ts
Original file line number Diff line number Diff line change
Expand Up @@ -257,6 +257,7 @@ export const extractMachines = async (
babelHelpers: 'bundled',
extensions,
plugins: [
'babel-plugin-macros',
'@babel/plugin-transform-typescript',
'@babel/plugin-proposal-optional-chaining',
'@babel/plugin-proposal-nullish-coalescing-operator',
Expand Down

0 comments on commit 9d50e15

Please sign in to comment.