Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
try {
inject();
clearErrorTransformers();
initializeErrorTransformers();
unmount(manager && manager.webpackHMR ? true : hadError);
} catch (e) {
console.error(e);
}
hadError = false;
actionsEnabled = hasActions;
let managerModuleToTranspile = null;
try {
const templateDefinition = getDefinition(template);
const configurations = parseConfigurations(
template,
templateDefinition.configurationFiles,
path => modules[path]
);
const errors = Object.keys(configurations)
.map(c => configurations[c])
.filter(x => x.error);
if (errors.length) {
const e = new Error(
`We weren't able to parse: '${errors[0].path}': ${
errors[0].error.message
}`
);
try {
inject();
clearErrorTransformers();
initializeErrorTransformers();
unmount(manager && manager.webpackHMR ? true : hadError);
} catch (e) {
console.error(e);
}
hadError = false;
actionsEnabled = hasActions;
let managerModuleToTranspile = null;
try {
const templateDefinition = getDefinition(template);
const configurations = parseConfigurations(
template,
templateDefinition.configurationFiles,
path => modules[path]
);
const errors = Object.keys(configurations)
.map(c => configurations[c])
.filter(x => x.error);
if (errors.length) {
const e = new Error(
`We weren't able to parse: '${errors[0].path}': ${
errors[0].error.message
}`
);