Skip to content

Weirdness in dist/ #8

@prewk

Description

@prewk

Hi, I'm no expert on compiling for distribution but when using your package, a Jest test failed for me.

Excerpt:

/............../node_modules/tab-election/dist/index.js:1
    ({"Object.<anonymous>":function(module,exports,require,__dirname,__filename,jest){export var To;
                                                                                      ^^^^^^
    SyntaxError: Unexpected token 'export'

I agree, is export really allowed here? https://github.com/dabblewriter/tab-election/blob/master/dist/index.js#L1

Shouldn't it either be an mjs file or use the convention exports.To = To or something?

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