Skip to content

Missing export with "npm i --ignore-script" #42

@mtthp

Description

@mtthp

Hello,

When installing a project with npm install --ignore-script, the usageStatistics method is not exported in the vaadin-usage-statistics.js file. This is the actual content:

import './vaadin-usage-statistics-collect.js';

Thus, making it unusable as soon as you want to build a project using a vaadin component.

A solution could be to change the default content to the following:

export { usageStatistics } from './vaadin-usage-statistics-collect.js';

What do you think ?
I'd tried to make a PR myself, but I'm a little lost on how/which file I should modify to commit the changes. How vaadin-usage-statistics-collect.html is transpiled into vaadin-usage-statistics-collect.js ?
Thanks for reading my issue and keep up the good work !

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