Skip to content
This repository was archived by the owner on Mar 9, 2025. It is now read-only.
This repository was archived by the owner on Mar 9, 2025. It is now read-only.

It does not resolve import/export #24

Open
@uaNikita

Description

@uaNikita

Hi, thanks for you example.

I have a question. When I added my additional module via

import test from './test.jsx';

with content

export default 1;

babel compile it to

var _test = require('./test');

var _test2 = _interopRequireDefault(_test);

and it does not work because node does not understand export default 1;.

Babel somehow resolve dependencies for production? Or I should use webpack for example?

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