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

fix: provide browser versions independent from module system #380

Merged
merged 1 commit into from
Feb 25, 2020

Commits on Feb 25, 2020

  1. fix: provide browser versions independent from module system

    Probably will fix uuidjs#378
    
    Currently main field is used for node and module for browser build. This
    is not entierly correct. Webpack can be used to build node apps. Though
    module is always preferred over main. For browser versions there is a
    special field.
    
    In this diff I added esm support for both node and browser.
    rollup-plugin-node-resolve look at browser field as well and prefer it
    to bundle umd.
    
    https://webpack.js.org/configuration/resolve/#resolvemainfields
    https://github.com/rollup/plugins/tree/master/packages/node-resolve#browser
    https://github.com/defunctzombie/package-browser-field-spec
    TrySound committed Feb 25, 2020
    Configuration menu
    Copy the full SHA
    0d18874 View commit details
    Browse the repository at this point in the history