MCPcopy Index your code
hub / github.com/developit/preact-cli-plugin-async / asyncPlugin

Function asyncPlugin

async-plugin.js:1–9  ·  view source on GitHub ↗
(config)

Source from the content-addressed store, hash-verified

1export default function asyncPlugin(config) {
2 let babel = config.module.loaders.filter(loader => loader.loader === 'babel-loader')[0].options;
3
4 // Blacklist regenerator within env preset:
5 babel.presets[0][1].exclude.push('transform-async-to-generator');
6
7 // Add fast-async
8 babel.plugins.push([require.resolve('fast-async'), { spec: true }]);
9}

Callers 1

preact.config.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected