Skip to content

Commit 0628482

Browse files
authored
feat: add rpt2 prefix to remaining errors (#382)
- most were added in ff88951, but these two were missed - this should now cover all **thrown** errors - they only get thrown in the `options` hook, which does not implement Rollup's `this.error` - all other errors are already auto-prefixed by RollupContext etc
1 parent 76109fc commit 0628482

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/check-tsconfig.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,5 @@ export function checkTsConfig(parsedConfig: tsTypes.ParsedCommandLine): void
77
const module = parsedConfig.options.module!;
88

99
if (module !== tsModule.ModuleKind.ES2015 && module !== tsModule.ModuleKind.ES2020 && module !== tsModule.ModuleKind.ESNext)
10-
throw new Error(`Incompatible tsconfig option. Module resolves to '${tsModule.ModuleKind[module]}'. This is incompatible with Rollup, please use 'module: "ES2015"', 'module: "ES2020"', or 'module: "ESNext"'.`);
10+
throw new Error(`rpt2: Incompatible tsconfig option. Module resolves to '${tsModule.ModuleKind[module]}'. This is incompatible with Rollup, please use 'module: "ES2015"', 'module: "ES2020"', or 'module: "ESNext"'.`);
1111
}

src/tslib.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,6 @@ try
1515
tslibVersion = tslibPackage.version;
1616
} catch (e)
1717
{
18-
console.warn("Error loading `tslib` helper library.");
18+
console.warn("rpt2: Error loading `tslib` helper library.");
1919
throw e;
2020
}

0 commit comments

Comments
 (0)