Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
function createTerminal(schema: TerminalSchema, context: BuilderContext): Observable {
const transforms: Transforms = createTransforms();
// @ts-ignore
return executeBrowserBuilder(schema, context, transforms);
}
export function buildCustomWebpackBrowser(
options: CustomWebpackBrowserSchema,
context: BuilderContext
): Observable {
return executeBrowserBuilder(options, context, getTransforms(options, context));
}
export function buildElectron(options: any, context: BuilderContext): Observable {
return executeBrowserBuilder(options, context, {
webpackConfiguration: (config) => {
return { ...config, target: 'electron-renderer' };
}
});
}