0.1.0 • Published 6 years ago

preact-widget-scripts-async-to-promises v0.1.0

Weekly downloads
1
License
ISC
Repository
-
Last release
6 years ago

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"]
}