8000 transform commonjs: show warning on import/export of reserved keyword · Issue #313 · lebab/lebab · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
transform commonjs: show warning on import/export of reserved keyword #313
Open
@milahu

Description

@milahu

this works in es5

exports.new = function() {};

this fails in es6

export function new() {}

cos new is a reserved keyword

only solution is to rename the export/import
lebab should at least show a warning

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0