Skip to content

"_interopRequireDefault" is not wrapping 'default' keyword in quotes anymore #1674

@simonvizzini

Description

@simonvizzini

I have updated webpack from 1.12.2 to 1.12.4 (and now also tried the latest 1.12.9), and I have noticed an issue in IE8 since the update, causing "Expected identifier, string, or number" errors to be thrown by IE8. The function _interopRequireDefault is not wrapping the default keyword in quotes anymore.

This is what 1.12.2 did output:
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }

And this is what 1.12.4 and 1.12.9 outputs:
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

Only difference are the missing quotes.

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