Skip to content

Is there a reason metro was used over webpack/browserify? #1

@j0j00

Description

@j0j00

Hi @ericwlange,

I'm currently trying to bundle my javascript using liquidcore-cli's bundle command, but it doesn't currently work because metro tries to resolve built-in libs like vm, os to actual node_modules.

The error message it gives was:

UnhandledPromiseRejectionWarning: Error: Unable to resolve module `vm` from `/path/to/script.js`: Module `vm` does not exist in the Haste module map

And from looking at the metro documentation, there doesn't seem to be an easy way to stop it from resolving those modules.

Webpack should handle this out of the box, so that's what I'm planning to use. I just wanted to know if there was a specific reason you deprecated the liquidserver, in favour of metro even though it seems like it already addressed this specific 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