Skip to content

Fastboot.require dist/node_modules #198

@xg-wang

Description

@xg-wang

Fastboot is requireing from ...dist/node_modules before falling back to require(moduleName). src
Is this an expected behavior or should the modules be assumed to locate at same level as dist?

And the existsSync should probably be replaced with require wrapped by try-catch directly.

I found this behaviour when debugging an issue here.
A reproduction can be found at https://github.com/xg-wang/fastboot-issue to demonstrate.

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