Skip to content

Using import syntax in config file throws error #142

@alanning

Description

@alanning
Expected behaviour

.config/chimpy.js

import path from 'path'
...
$ npx chimpy .config/chimpy.js

Should work.

Actual behaviour

SyntaxError: Unexpected token import

Exact steps to reproduce / repository that demonstrates the problem

.config/chimpy.js

import path from 'path'
...
Version & tools:
Console / Log Output

Join our Slack xolv.io/community #chimp channel, where you can find help and help others.

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