Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
this.options.context || compilation.compiler.options.context || process.cwd(),
this.options.name,
this.options.version
);
for (const module of stylableModules) {
const namespace = module.buildInfo.stylableMeta.namespace;
const depth = module.buildInfo.runtimeInfo.depth;
builder.addSource(
module.resource,
compilation.inputFileSystem.readFileSync(module.resource).toString(),
{ namespace, depth }
);
const component = getCSSComponentLogicModule(module);
if (!component) {
continue;
}
const componentConfig = this.loadComponentConfig(compilation, component);
if (!componentConfig) {
continue;
}
builder.addComponent(module.resource, componentConfig, namespace);
this.handleVariants(
componentConfig,
dirname(module.resource),
compilation,