Skip to content

"--polyglot" option does not appear to be available through the passed gulp options, no es6 support. #5

Closed
@benderTheCrime

Description

@benderTheCrime

Related to this issue:
documentationjs/documentation#112

ES6 documentation cannot be created without the --polyglot option. It does not appear as though I can pass this argument via gulp, as demonstrated by my task:

gulp.task('documentation', function() {
    gulp.src(src)
        .pipe(documentation({
            format: 'html',
            polyglot: true
        }))
        .pipe(gulp.dest('md-documentation'));
});

and the error I get as a result:

events.js:141
      throw er; // Unhandled 'error' event
            ^
Error: Parsing file *: 'import' and 'export' may appear only with 'sourceType: module' (4:0)

but not via the CLI:
documentation * --polyglot

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions