Issue 1:
Do you want to request a feature or report a bug?

bug

What is the current behavior?

"0"-prefixed octal literals and octal escape sequences are deprecated; for octal literals use the "0o" prefix instead

If the current behavior is a bug, please provide the steps to reproduce.

https://gist.github.com/caseyWebb/a5fdd929638f961ee673581e7d68ddb1

What is the expected behavior?

No error should be thrown

Please mention other relevant information such as the browser version, Node.js version, webpack version and Operating System.

Firefox 58 & Chrome 64

Node 9.5.0

webpack 3.10.0 & webpack@next

webpack-dev-server 2.11.1 & webpack-dev-server@next

MacOS 10.13

When the NamedModulesPlugin is added, a different error is thrown, and the generated code is

webpackHotUpdate(0,{

/***/ "./src/index.js":
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__log_js__ = __webpack_require__("./src/log.js");

Object(__WEBPACK_IMPORTED_MODULE_0__log_js__["log"])()

/**
* THIS IS THE IMPORTANT/BROKEN PART
*/
module.hot.accept("./src/log.js""./src/log.js", function(__WEBPACK_OUTDATED_DEPENDENCIES__) { /* harmony import */ __WEBPACK_IMPORTED_MODULE_0__log_js__ = __webpack_require__("./src/log.js"); (function(__WEBPACK_OUTDATED_DEPENDENCIES__) { /* harmony import */ __WEBPACK_IMPORTED_MODULE_0__log_js__ = __webpack_require__("./src/log.js"); (() => Object(__WEBPACK_IMPORTED_MODULE_0__log_js__["log"])())(__WEBPACK_OUTDATED_DEPENDENCIES__); })(__WEBPACK_OUTDATED_DEPENDENCIES__); })

/***/ }),

/***/ "./src/log.js":
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
/* harmony export (immutable) */ __webpack_exports__["log"] = log;
function log() {
document.body.innerText += 'foo\n'
document.body.innerText += 'bar\n'
}

/***/ })
})

This leads me to believe that for some reason the module identifier is being duplicated. I think the octal error is an effect of 0 being doubled to 00.

Issue 2:
Do you want to request a feature or report a bug?

A Bug

What is the current behavior?

Our application has ~2K modules with multiple entries. After compiling these entry points, webpack logs given entries + distorted entries in output and emits duplicate events like after-compile. With this, our custom plugins are executed twice or thrice for each entry point and causing unexpected issues.

Here is one such output from webpack

Hash: b09d9f200c42ca4a76dbf8cc66d5e8b587fba22bdd218de191690012cb805ea514138c6d9e3071acbee62c6b402563b345eeeb7ce7ec3db9b3fcb1aeaf11a86131ea1f00ab71
Version: webpack 3.6.0 / grunt-webpack 3.0.2
Child
Hash: b09d9f200c42ca4a76db
Time: 98314ms
Asset Size Chunks Chunk Names
foo_app.bundle.js 14.7 MB 0 [emitted] [big] foo_app
foo_app_vendor.bundle.js 5.81 MB 1 [emitted] [big] vendor
Child
Hash: f8cc66d5e8b587fba22b
Time: 101489ms
Asset Size Chunks Chunk Names
bar_app.bundle.js 10.6 MB 0 [emitted] [big] bar_app
bar_app_vendor.bundle.js 9.81 MB 1 [emitted] [big] vendor

## Following are distorted chunks which are not in config ##
Child
Hash: dd218de191690012cb80
Time: 19155ms
4 assets
Child
Hash: 5ea514138c6d9e3071ac
Time: 11085ms
3 assets
Child
Hash: bee62c6b402563b345ee
Time: 10084ms
3 assets
Child
Hash: eb7ce7ec3db9b3fcb1ae
Time: 1359ms
2 assets
Child
Hash: af11a86131ea1f00ab71
Time: 13631ms
4 assets

On debugger mode, obj in lib/Stats.js file has following value:

{ errors: [],
warnings: [],
hash: 'af11a86131ea1f00ab71',
time: 13631,
assetsByChunkName:
{ bar_app: 'bar_app.bundle.js',
vendor: 'bar_app_vendor.bundle.js' },
assets: [],
filteredAssets: 4,
children: [],
name: undefined } // wonder why name is undefined here.

If the current behavior is a bug, please provide the steps to reproduce.

Sample webpack config: https://gist.github.com/muralikr/57a9667b6570027d171579447f7dfa6e

We are using custom loader and plugin in our config. Both of them does only synchronous tasks (like modifying source of few modules, processing and storing as files).

What is the expected behavior?

Webpack should emit plugin related events only once per entry. If it gets into any error state, it should throw error and suspend compiling.

If this is a feature request, what is motivation or use case for changing the behavior?

Please mention other relevant information such as the browser version, Node.js version, webpack version and Operating System.

node -- v6.10.0

webpack -- 3.5.6

Mac OSX Sierra