Skip to content

Dynamic requires not being rewrited correctly #801

@pherrymason

Description

@pherrymason

I'm bundling select2 (https://github.com/select2/select2) and it makes use of dynamic requires.
Specifically in translation.js file (https://github.com/select2/select2/blob/select2-ng/src/js/select2/translation.js#L26).

This require is being rewrited as:

var Query = __webpack_require__(19)(""options.amdBase + 'compat/query');

Which results in a syntax error. Shouldn't write it like this?

var Query = __webpack_require__(19)("" + options.amdBase + 'compat/query');

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions