preact-widget-scripts-async-to-promises
v0.1.0
Published
Common scripts used in making Preact widgets with async/await transformed to promises
Downloads
2
Readme
Preact Widget Scripts Async
Bunch of common scripts used in creating a preact widget.
This package differs from preact-widget-scripts by changing the babel configuration
to support async/await with babel-plugin-async-to-promises
.
The package can be used with the preactjs-templates/widget by adding it as a development dependency
npm -i -D preact-widget-scripts-async-to-promises
And then changing the .babelrc in the root of the created project to read:
{
"presets": ["preact-widget-scripts-async-to-promises/babel"]
}