Skip to content

Commit

Permalink
fix(watch): hide experimental warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
privatenumber committed May 11, 2022
1 parent 3a920f7 commit ccf7ee1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/ignore-node-warnings.ts
@@ -1,13 +1,13 @@
import { Transform } from 'stream';

const warningTraceTip = '(Use `node --trace-warnings ...` to show where the warning was created)';
const warningsToIgnore = [
'ExperimentalWarning: --experimental-loader is an experimental feature. This feature could change at any time',
'ExperimentalWarning: Importing JSON modules is an experimental feature. This feature could change at any time',
];
const nodeWarningPattern = /^\(node:\d+\) (.+)\n/m;

export const ignoreNodeWarnings = () => {
const warningsToIgnore = [
'ExperimentalWarning: --experimental-loader is an experimental feature. This feature could change at any time',
'ExperimentalWarning: Importing JSON modules is an experimental feature. This feature could change at any time',
];
let filterStderr = true;
let counter = 0;

Expand Down

0 comments on commit ccf7ee1

Please sign in to comment.