Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
}
if (krasConfig.ssl === undefined) {
krasConfig.ssl = undefined;
}
if (krasConfig.map === undefined) {
krasConfig.map = {};
}
if (krasConfig.api === undefined) {
krasConfig.api = '/manage-mock-server';
}
if (krasConfig.injectors === undefined) {
krasConfig.injectors = defaultConfig.injectors;
}
if (fresh) {
await clearCache(root, cacheDir);
}
await setStandardEnvs({
target: dirname(entryFiles),
dependencies: externals,
piral: name,
});
modifyBundlerForPiral(Bundler.prototype, dirname(entryFiles));
const bundler = new Bundler(
entryFiles,
}
if (krasConfig.ssl === undefined) {
krasConfig.ssl = undefined;
}
if (krasConfig.map === undefined) {
krasConfig.map = {};
}
if (krasConfig.api === undefined) {
krasConfig.api = '/manage-mock-server';
}
if (krasConfig.injectors === undefined) {
krasConfig.injectors = defaultConfig.injectors;
}
if (fresh) {
await clearCache(root, cacheDir);
}
await setStandardEnvs({
target: targetDir,
piral: appPackage.name,
dependencies: externals,
});
modifyBundlerForPilet(Bundler.prototype, externals, targetDir);
const bundler = new Bundler(
entryModule,