Skip to content

Individual function cannot be imported with ESM imports  #38

@laurentpellegrino

Description

@laurentpellegrino

Expected behavior 😸

Individual functions import with ECMAScript modules work in browsers.

Actual behavior 😿

Global import using default export for voca is working:

import voca from 'voca';

However, individual function imports with ESM modules is not working:

Uncaught SyntaxError: The requested module '../node_modules/voca/starts_with.js' does not provide an export named 'default'

Steps to reproduce 👷

import startsWith from 'voca/starts_with';

Technical details: 🔧

Browser/OS type: Chrome 67
VocaJS version: 1.4.0

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