Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
createCompiler() {
const compiler = new Compiler(
{
configPath: this.configPath,
configOptions: {
...this.options,
bundleTarget: 'server',
bundleMode:
this.options.bundleNames.length > 1
? 'multi-bundle'
: 'single-bundle',
},
},
this.runtime.logger
);
compiler.on(
Compiler.Events.BUILD_START,