Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

need ES5 version ready in npm package #179

Closed
kerryChen95 opened this issue Nov 9, 2017 · 1 comment
Closed

need ES5 version ready in npm package #179

kerryChen95 opened this issue Nov 9, 2017 · 1 comment

Comments

@kerryChen95
Copy link

front-end developers usually configure bundler, like webpack, not to use babel to compile ES6+ codes inside node_modules directory, otherwise babel need to compile tons of codes and it's too slow.

so I hope node-mine provide ES5 version out from npm package by using package.json browser field to hint bundler which module to use.

@broofa
Copy link
Owner

broofa commented Nov 9, 2017

The legacy version works with ES5. npm install mime@^1

Documentation for the legacy api can be found here

@broofa broofa closed this as completed Nov 9, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants