Skip to content

Commit

Permalink
Test
Browse files Browse the repository at this point in the history
  • Loading branch information
dumganhar committed Oct 17, 2024
1 parent bcb55cc commit 6470ccd
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,12 @@ export async function rpInlineEnum(rawOptions: Options, meta?: any): Promise<rol
);

const name = 'cc-inline-enum';

const moduleOverrides = options.moduleOverrides;
for (const k in moduleOverrides) {
const v = moduleOverrides[k];
console.log(`[${name}], overrides[${k}]=${v}`);
}
return [
{
name,
Expand All @@ -68,6 +74,7 @@ export async function rpInlineEnum(rawOptions: Options, meta?: any): Promise<rol
transform(this, code: string, key: string): rollup.TransformResult {
// Don't transform a module that is overrode
const moduleId = pathUtils.makePathEqualityKey(key);
console.log(`[${name}], transform: ${moduleId}`);
if (options.moduleOverrides && (moduleId in options.moduleOverrides)) {
return;
}
Expand Down

0 comments on commit 6470ccd

Please sign in to comment.