Open pyoner opened 3 years ago
Problem: Rollup cannot import {Machine} from "@xstate/compiled"
import {Machine} from "@xstate/compiled"
How to fix? I added a index.es.js file:
index.es.js
export * from "xstate"
And patched package.json:
package.json
{ "name": "@xstate/compiled", "main": "index.js", "module": "index.es.js", "version": "0.0.4" }
Nice. This looks fine to add.
Probably also needs one for react too.
I have added a template index.es.js only in the PR #57
Problem: Rollup cannot
import {Machine} from "@xstate/compiled"
How to fix? I added a
index.es.js
file:And patched
package.json
: