Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
host: v.string,
hot: v.boolean,
htmlSource: v.oneOfType(validatePromise, v.string, v.func),
jsEntry: validateAbsolutePaths,
liveReload: v.boolean,
environmentVariables: v.plainObject,
modernBrowserTest: v.string,
outputDirectory: validateAbsolutePaths,
polyfill: v.boolean,
port: v.number,
postcssPlugins: v.arrayOf(v.func),
publicAssetsPath: v.string,
publicDirectory: v.string,
siteBasePath: validateBasePath,
stats: v.string,
vendorModules: v.arrayOf(v.string),
webpackConfigTransform: v.func,
webpackLoaders: v.arrayOf(v.plainObject),
webpackPlugins: v.arrayOf(v.any)
})
)(rawConfig);
} catch (error) {
error.message = `Invalid Underreact configuration. ${error.message}`;
throw error;
}
}