Skip to content

Support ES6 module loading #6

@pilafmon

Description

@pilafmon

Add an ES6 module version of ip-range-check to prevent messages like:

WARNING in component.ts depends on 'ip-range-check'. CommonJS or AMD dependencies can
cause optimization bailouts.
For more info see: https://angular.io/guide/build#configuring-commonjs-dependencies

Maybe create an additional .js file containing lines similar to:

import { ipaddr } from 'ipaddr.js';
...
export { checkManyCidrs };

Or maybe create a /dist folder with both the CommonJS and ESM versions plus the .d.ts declaration file.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions