Skip to content

MODULARIZE can't be used in Node #5093

Closed
@curiousdannii

Description

@curiousdannii

The MODULARIZE wraps everything in a function, which is nice. But the code which sets module.exports is inside that function, which means nothing is exported until you run the function, and you can't run the function without it being exported. To get around this you have to use pre and post code to create your own wrapper.

If MODULARIZE is used then the code which sets module.exports should be outside the wrapped function.

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