jayco / accept-language-negotiator

RFC4647 compliant accept-language negotiator for parsing HTTP Accept-Language header and returning matched lists or language lookup.
MIT License
7 stars 3 forks source link

Expose to users that the src/index.js should be used in ESM environments #5

Closed ankon closed 4 years ago

ankon commented 4 years ago

See https://github.com/rollup/rollup/wiki/pkg.module and this discussion in StackOverflow for some more details: https://stackoverflow.com/questions/42708484/what-is-the-module-package-json-field-for

As a work-around until this is done: In ESM environments use

import { lookup } from 'accept-language-negotiator/src';
jayco commented 4 years ago

Hey, @ankon thanks for this! :)