Skip to content

Conversation

@jakub300
Copy link

@jakub300 jakub300 commented Nov 3, 2017

Hey,

Currently webpack-steam always passes files for named entry as an array. Because of that webpack is creating dummy module and all it does is requiring our main file, for example:

/***/ 4:
/***/ (function(module, exports, __webpack_require__) {

module.exports = __webpack_require__(5);


/***/ }),

It is ugly and what's worse that module is does not receive id from HashedModuleIdsPlugin (that's what lead me to discovery of current behaviour). This PR fixes it by extracting first element from the array if the array has only one element.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant