Skip to content

Stdlib internal methods -- inline them? #8

@wcjohnson

Description

@wcjohnson

If you use one of the non-lodash stdlib methods like looseEq the AST transforms automatically import babel-plugin-lightscript into the final code.

Since babel plugins are devDependencies 100% of the time in the current ecosystem, I don't think most people will realize that they need babel-plugin-lightscript as a dependency rather than a devDependency which means their app may crash when NODE_ENV="production". And I'm not sure making a Babel plugin into a dependency is a good idea even if it is well documented that you need it.

Would you consider just inlining the builtin stdlib methods using AST transforms since they are all oneliners anyway?

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