Skip to content
This repository was archived by the owner on Jul 21, 2020. It is now read-only.
This repository was archived by the owner on Jul 21, 2020. It is now read-only.

Unexpected token import: ES2015 module support without transpiling to CommonJS #5

Closed
@CKGrafico

Description

@CKGrafico

I've made a simple test like your example and I've this error:

(function (exports, require, module, __filename, __dirname) { import test from 'ava';
                                                              ^^^^^^

SyntaxError: Unexpected token import

the test:

import test from 'ava';

test('one plus two equals three', t => {
  t.is(1 + 2, 3);
});

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions