Skip to content

Webpack throws warning #62

@raszpi

Description

@raszpi

The usage of require throws this warning:
WARNING in .//angular-websocket/angular-websocket.min.js
Critical dependencies:
1:5077-5084 require function is used in a way in which dependencies cannot be statically extracted
@ ./
/angular-websocket/angular-websocket.min.js 1:5077-5084

(and a lot of other ones)

in the source file:
line 348: if (typeof exports === 'object' && require) {

basically webpack expects require to have parameters and without it, it tries to include all files in the directory.

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