Skip to content

Instantly share code, notes, and snippets.

@adam-cyclones
Created July 2, 2020 21:26
Show Gist options
  • Save adam-cyclones/cc0791a6662f7500e03f3b1f3c89929c to your computer and use it in GitHub Desktop.
Save adam-cyclones/cc0791a6662f7500e03f3b1f3c89929c to your computer and use it in GitHub Desktop.
Generated by XState Viz: https://xstate.js.org/viz
// Available variables:
// - Machine
// - interpret
// - assign
// - send
// - sendParent
// - spawn
// - raise
// - actions
// - XState (all XState exports)
const fetchMachine = Machine({
id: 'lib-unpack-build-steps',
initial: 'discoveringDependcies',
context: {
importMap: {}
},
states: {
'discoveringDependcies': {
invoke: {
id: 'discoverDependcies',
onDone:{
target: 'writing.ESModule'
},
onError: {
target: 'result.fail'
}
}
},
'processImportMap': {
},
'writing': {
states: {
'ESModule': {
},
'writeImportMap': {
},
'writeIndexHtml': {
},
'writeModuleIndex': {
},
'writeESModuleShim': {
},
},
},
'result': {
states: {
'fail': {
},
'success': {
}
}
}
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment