Skip to content

Standard Bundler is unable to handle circular dependencies properly. #38

@Protryon

Description

@Protryon

Given the modules:

// circular1.js
import circ2 from '/root/circular1_dep.js';
export var exportedResult = circ2 + 5;
var result = exportedResult;

//circular1_dep.js
export default 7;
import {exportedResult as circ1} from '/root/circular1.js';

The standard bundler does not provide the correct output of 12 for the value of result, as expected by the spec, or other implementations.

Module piercing does not have this issue.

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