Skip to content

How to import it while building? #89

@stratboy

Description

@stratboy

Hi, It's not clear to me how should I use it if not loading it via script tag. Or, how to build it into another js file.

I'm trying this:

import { crs } from '../node_modules/country-region-selector/dist/crs.min.js';

And it seems to work, but it's not really clear to me if it's the right way, and also why it's working, since if I then log the crs object, it's just undefined. Why? How to? Thank you.

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