Skip to content

6to5ify #1

@konsumer

Description

@konsumer

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions