[skip ci] plugin guard
This commit is contained in:
1 parent
c0dce836cf
commit
35b38c7cd8
17 files changed
+97
-15
No files matched your search
@@ -7,6 +7,7 @@ import path from 'path';
|
||||
import fs from 'fs-extra'
|
||||
import json5 from 'json5';
|
||||
import YAML from "yaml";
|
||||
import { exitOnCriticalErrors } from './critical-exit';
|
||||
|
||||
const jsonExtensions = ['.json', '.jsonc', '.json5'];
|
||||
const yamlExtensions = ['.yaml', '.yml'];
|
||||
@@ -40,5 +41,5 @@ export class JsonYamlPlugin implements CompilerPlugin {
|
||||
}
|
||||
|
||||
export default () => {
|
||||
return new JsonYamlPlugin();
|
||||
return exitOnCriticalErrors(new JsonYamlPlugin());
|
||||
};
|
||||
Reference in new issue
Block a user