Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
it('should run with library config', async () => {
const WebpackCompilerHost = require('@ngtools/webpack/src/compiler_host').WebpackCompilerHost;
const writeFilePropertyDescriptor = Object.getOwnPropertyDescriptor(WebpackCompilerHost.prototype, 'writeFile');
try {
NgcWebpackPlugin = require('../dist').NgcWebpackPlugin;
findPluginIndex = require('../dist/src/cli/cli').findPluginIndex;
require('../dist/src/patch-ngtools-compiler-host-for-flat-module');
} catch (e) {
NgcWebpackPlugin = require('../index').NgcWebpackPlugin;
findPluginIndex = require('../src/cli/cli').findPluginIndex;
require('../src/patch-ngtools-compiler-host-for-flat-module');
}
delOutDir();
const tmpTsConfig = await createTempTsConfig( config => {
return Object.assign(config, {