mirror of https://github.com/webpack/webpack.git
replace Async with Neo-Async
This commit is contained in:
parent
df65475ba3
commit
864e563173
|
@ -8,7 +8,7 @@ const cp = require("child_process");
|
|||
const path = require("path");
|
||||
const tc = require("./template-common");
|
||||
const fs = require("fs");
|
||||
const async = require("async");
|
||||
const async = require("neo-async");
|
||||
|
||||
const extraArgs = "";
|
||||
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
*/
|
||||
"use strict";
|
||||
|
||||
const asyncLib = require("async");
|
||||
const asyncLib = require("neo-async");
|
||||
const PrefetchDependency = require("./dependencies/PrefetchDependency");
|
||||
const NormalModule = require("./NormalModule");
|
||||
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
*/
|
||||
"use strict";
|
||||
|
||||
const asyncLib = require("async");
|
||||
const asyncLib = require("neo-async");
|
||||
|
||||
class CachePlugin {
|
||||
constructor(cache) {
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
*/
|
||||
"use strict";
|
||||
|
||||
const asyncLib = require("async");
|
||||
const asyncLib = require("neo-async");
|
||||
const util = require("util");
|
||||
const Tapable = require("tapable").Tapable;
|
||||
const SyncHook = require("tapable").SyncHook;
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
*/
|
||||
"use strict";
|
||||
|
||||
const asyncLib = require("async");
|
||||
const asyncLib = require("neo-async");
|
||||
const path = require("path");
|
||||
const util = require("util");
|
||||
const Tapable = require("tapable").Tapable;
|
||||
|
@ -255,7 +255,7 @@ class Compiler extends Tapable {
|
|||
const emitFiles = (err) => {
|
||||
if(err) return callback(err);
|
||||
|
||||
asyncLib.forEach(Object.keys(compilation.assets), (file, callback) => {
|
||||
asyncLib.forEach(compilation.assets, (source, file, callback) => {
|
||||
|
||||
let targetFile = file;
|
||||
const queryStringIdx = targetFile.indexOf("?");
|
||||
|
@ -266,7 +266,6 @@ class Compiler extends Tapable {
|
|||
const writeOut = (err) => {
|
||||
if(err) return callback(err);
|
||||
const targetPath = this.outputFileSystem.join(outputPath, targetFile);
|
||||
const source = compilation.assets[file];
|
||||
if(source.existsAt === targetPath) {
|
||||
source.emitted = false;
|
||||
return callback();
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
*/
|
||||
"use strict";
|
||||
|
||||
const asyncLib = require("async");
|
||||
const asyncLib = require("neo-async");
|
||||
const path = require("path");
|
||||
|
||||
const Tapable = require("tapable").Tapable;
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
"use strict";
|
||||
|
||||
const path = require("path");
|
||||
const asyncLib = require("async");
|
||||
const asyncLib = require("neo-async");
|
||||
|
||||
class LibManifestPlugin {
|
||||
constructor(options) {
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
const Tapable = require("tapable").Tapable;
|
||||
const SyncHook = require("tapable").SyncHook;
|
||||
const MultiHook = require("tapable").MultiHook;
|
||||
const asyncLib = require("async");
|
||||
const asyncLib = require("neo-async");
|
||||
const MultiWatching = require("./MultiWatching");
|
||||
const MultiStats = require("./MultiStats");
|
||||
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
*/
|
||||
"use strict";
|
||||
|
||||
const asyncLib = require("async");
|
||||
const asyncLib = require("neo-async");
|
||||
|
||||
class MultiWatching {
|
||||
constructor(watchings, compiler) {
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
*/
|
||||
"use strict";
|
||||
|
||||
const asyncLib = require("async");
|
||||
const asyncLib = require("neo-async");
|
||||
const Tapable = require("tapable").Tapable;
|
||||
const AsyncSeriesWaterfallHook = require("tapable").AsyncSeriesWaterfallHook;
|
||||
const SyncWaterfallHook = require("tapable").SyncWaterfallHook;
|
||||
|
|
|
@ -9,7 +9,6 @@
|
|||
"acorn-dynamic-import": "^3.0.0",
|
||||
"ajv": "^6.1.0",
|
||||
"ajv-keywords": "^3.1.0",
|
||||
"async": "^2.1.2",
|
||||
"chrome-trace-event": "^0.1.1",
|
||||
"enhanced-resolve": "^4.0.0-beta.2",
|
||||
"eslint-scope": "^3.7.1",
|
||||
|
@ -17,6 +16,7 @@
|
|||
"loader-utils": "^1.1.0",
|
||||
"memory-fs": "~0.4.1",
|
||||
"mkdirp": "~0.5.0",
|
||||
"neo-async": "^2.5.0",
|
||||
"node-libs-browser": "^2.0.0",
|
||||
"schema-utils": "^0.4.2",
|
||||
"tapable": "^1.0.0-beta.5",
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
require("should");
|
||||
const path = require("path");
|
||||
const fs = require("fs");
|
||||
const asyncLib = require("async");
|
||||
const asyncLib = require("neo-async");
|
||||
var Test = require("mocha/lib/test");
|
||||
|
||||
const Benchmark = require("benchmark");
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
var asyncLib = require("async");
|
||||
var asyncLib = require("neo-async");
|
||||
module.exports = function(content) {
|
||||
var cb = this.async();
|
||||
var json = JSON.parse(content);
|
||||
|
|
|
@ -2616,6 +2616,10 @@ negotiator@0.5.3:
|
|||
version "0.5.3"
|
||||
resolved "https://registry.yarnpkg.com/negotiator/-/negotiator-0.5.3.tgz#269d5c476810ec92edbe7b6c2f28316384f9a7e8"
|
||||
|
||||
neo-async@^2.5.0:
|
||||
version "2.5.0"
|
||||
resolved "https://registry.yarnpkg.com/neo-async/-/neo-async-2.5.0.tgz#76b1c823130cca26acfbaccc8fbaf0a2fa33b18f"
|
||||
|
||||
node-fetch@^1.0.1:
|
||||
version "1.7.3"
|
||||
resolved "https://registry.yarnpkg.com/node-fetch/-/node-fetch-1.7.3.tgz#980f6f72d85211a5347c6b2bc18c5b84c3eb47ef"
|
||||
|
|
Loading…
Reference in New Issue