source: frontend/node_modules/fork-ts-checker-webpack-plugin/lib/hooks/tapAfterCompileToAddDependencies.js

Last change on this file was 9af201e, checked in by MBK <marija.karapandzova@…>, 12 days ago

Fix frontend appearance

  • Property mode set to 100644
File size: 1.5 KB
Line 
1"use strict";
2var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3 function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4 return new (P || (P = Promise))(function (resolve, reject) {
5 function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6 function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7 function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8 step((generator = generator.apply(thisArg, _arguments || [])).next());
9 });
10};
11Object.defineProperty(exports, "__esModule", { value: true });
12function tapAfterCompileToAddDependencies(compiler, configuration, state) {
13 compiler.hooks.afterCompile.tapPromise('ForkTsCheckerWebpackPlugin', (compilation) => __awaiter(this, void 0, void 0, function* () {
14 if (compilation.compiler !== compiler) {
15 // run only for the compiler that the plugin was registered for
16 return;
17 }
18 const dependencies = yield state.dependenciesPromise;
19 if (dependencies) {
20 state.lastDependencies = dependencies;
21 dependencies.files.forEach((file) => {
22 compilation.fileDependencies.add(file);
23 });
24 }
25 }));
26}
27exports.tapAfterCompileToAddDependencies = tapAfterCompileToAddDependencies;
Note: See TracBrowser for help on using the repository browser.