Skip to content

Gulp generating schema error #3

@trinile

Description

@trinile

Receiving Reference error: regeneratorRuntime not defined.
Adding below code doesn't seem to work.

    .pipe(babel({
      presets: [ 'es2015', 'stage-0'],
      plugins: ['transform-object-rest-spread', ['transform-runtime', {
      'polyfill': false,
      'regenerator': true
    }]],
    }))
});

Async functions and generators cannot be used in the script for generating schema.
Issue is babel-polyfill needs to be required. Alternatives? babel-transform-runtime.
Current fix: using npm script to watch schema files and rebuild upon changes.
Gulp file is not currently useful at the moment.

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