Skip to content

Publish browser friendly version to /lib & source in /src #2

@chrisdostert

Description

@chrisdostert

Hello,
this is an extremely helpful library & thanks for publishing it.

One ask if you'd be open to it; I can't run it through create-react-app without getting this warning .

The suggestion is basically saying npm projects should publish compiled/transpiled browser friendly assets to /lib but keep source in /src.

Would you be open to this?

the following should accomplish it:

add .babelrc

{
  "presets": ["env"]
}

run babel pre-publish to generate /lib

babel src --out-dir=lib

Cheers!

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