|
Last change
on this file was 9af201e, checked in by MBK <marija.karapandzova@…>, 11 days ago |
|
Fix frontend appearance
|
-
Property mode
set to
100644
|
|
File size:
823 bytes
|
| Line | |
|---|
| 1 | /**
|
|---|
| 2 | * Copyright (c) 2015-present, Facebook, Inc.
|
|---|
| 3 | *
|
|---|
| 4 | * This source code is licensed under the MIT license found in the
|
|---|
| 5 | * LICENSE file in the root directory of this source tree.
|
|---|
| 6 | */
|
|---|
| 7 |
|
|---|
| 8 | 'use strict';
|
|---|
| 9 |
|
|---|
| 10 | // References:
|
|---|
| 11 | // - https://github.com/TypeStrong/fork-ts-checker-webpack-plugin#plugin-hooks
|
|---|
| 12 | // - https://github.com/TypeStrong/fork-ts-checker-webpack-plugin/issues/232#issuecomment-645543747
|
|---|
| 13 | const ForkTsCheckerWebpackPlugin = require('./ForkTsCheckerWebpackPlugin');
|
|---|
| 14 |
|
|---|
| 15 | module.exports = class ForkTsCheckerWarningWebpackPlugin {
|
|---|
| 16 | apply(compiler) {
|
|---|
| 17 | new ForkTsCheckerWebpackPlugin().apply(compiler);
|
|---|
| 18 |
|
|---|
| 19 | const hooks = ForkTsCheckerWebpackPlugin.getCompilerHooks(compiler);
|
|---|
| 20 |
|
|---|
| 21 | hooks.issues.tap('ForkTsCheckerWarningWebpackPlugin', issues =>
|
|---|
| 22 | issues.map(issue => ({ ...issue, severity: 'warning' }))
|
|---|
| 23 | );
|
|---|
| 24 | }
|
|---|
| 25 | };
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.