Something I want to test below...
const foo = 'bar';
import { EventObject, Guard, InvokeCreator, StateMachine } from 'xstate' | |
type EventNames = 'GO_BACK' | 'GO_FORWARD' | 'GO_SIDEWAYS'; | |
type KnownContextKeys = 'user'; | |
type LucyKnownContext<Keys extends string> = Record<Keys, any> | |
function createMachine<TContext extends LucyKnownContext<KnownContextKeys>, TEvent extends { type: EventNames } = any>() { | |
return {} as any |
node_modules/ |
import * as aud from 'audio-context-timers'; | |
console.log(aud); |
main.zip: main.js package.json package-lock.json src lib node_modules | |
zip -r $@ $^ | |
clean: | |
@rm -f main.zip deploy.json | |
.PHONY: clean | |
deploy.json: main.zip | |
aws lambda update-function-code --function-name my-function-name --zip-file fileb://./$^ > $@ |
let error1, error2; | |
try { | |
await import('/mod.js'); | |
} catch(err) { | |
error1 = err; | |
} | |
try { | |
await import('/mod.js'); |
I recently tweeted out the following about the Extensible Web Manifesto.
zig-cache |
This release adds support for a JavaScript module entry point. If you are using a bundler like webpack this will be used automatically and you do not need to make any changes.
Usage is described in the readme. In short you can import any of the primary classes like so:
import {
Menu,
Cart,
out.mjs | |
node_modules/ |