-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Description
I am probably missing something, but I can't seem to use 6to5ify.
var koa = require('koa'),
app = koa(),
serve = require('koa-static'),
browserify = require('koa-browserify'),
to5ify = require('6to5ify'),
path = require('path'),
port = process.env.PORT || 3000,
staticPublic = path.join(__dirname, '..', 'public');
app.use(browserify({
root: staticPublic,
debug: process.env.NODE_ENV !== 'production',
production: process.env.NODE_ENV === 'production',
transform: to5ify
}));
app.use(serve(staticPublic));
app.listen(port);In my browser, I get this error:
Uncaught ReferenceError: regeneratorRuntime is not defined
when I try to use a generator.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels