Skip to content

import causes "Unexpected token" error #57

@Dean-NC

Description

@Dean-NC

Uglifyjs 3 does support the import statement, but jscompress.com says:
Unexpected token: name «Z1», expected: punc «;» (line: 1, col: 7)

import Z1 from './z1.js';

function test() {
	Z1.abc();
}

It does work here:
https://skalman.github.io/UglifyJS-online

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