Skip to content

__VERSION__ undefined when import from node_modules #4

@lokhmakov

Description

@lokhmakov
  1. Simple import with webpack build return error in subj
    import HumanInput from 'humaninput' const hi = new HumanInput(window) hi.on('a', () => console.log(12345))
  2. U r using webpack DefinePlugin for defining __VERSION__
  3. main in package.json reference to lib/humaninput-full.js, where no __VERSION__
  4. In dist/humaninput-1.1.12.full.js all is ok

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