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

Commit 9d50e15

Browse files
committed
Add support for babel macros used in machine code
1 parent 2c3b7de commit 9d50e15

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

.changeset/red-walls-allow.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'xstate-codegen': patch
3+
---
4+
5+
Add support for babel macros used in machine code.

packages/xstate-compiled/src/extractMachines.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -257,6 +257,7 @@ export const extractMachines = async (
257257
babelHelpers: 'bundled',
258258
extensions,
259259
plugins: [
260+
'babel-plugin-macros',
260261
'@babel/plugin-transform-typescript',
261262
'@babel/plugin-proposal-optional-chaining',
262263
'@babel/plugin-proposal-nullish-coalescing-operator',

0 commit comments

Comments
 (0)