From 0628482ea26ddf56e6ef5521e4dcb85ef5b4beb6 Mon Sep 17 00:00:00 2001 From: Anton Gilgur Date: Tue, 12 Jul 2022 11:56:03 -0400 Subject: [PATCH] feat: add rpt2 prefix to remaining errors (#382) - most were added in ff8895103c8466694e7d8eeb734f51d2850670d8, 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 --- src/check-tsconfig.ts | 2 +- src/tslib.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/check-tsconfig.ts b/src/check-tsconfig.ts index c7e1810..033742f 100644 --- a/src/check-tsconfig.ts +++ b/src/check-tsconfig.ts @@ -7,5 +7,5 @@ export function checkTsConfig(parsedConfig: tsTypes.ParsedCommandLine): void const module = parsedConfig.options.module!; if (module !== tsModule.ModuleKind.ES2015 && module !== tsModule.ModuleKind.ES2020 && module !== tsModule.ModuleKind.ESNext) - 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"'.`); + 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"'.`); } diff --git a/src/tslib.ts b/src/tslib.ts index d178923..1c7f936 100644 --- a/src/tslib.ts +++ b/src/tslib.ts @@ -15,6 +15,6 @@ try tslibVersion = tslibPackage.version; } catch (e) { - console.warn("Error loading `tslib` helper library."); + console.warn("rpt2: Error loading `tslib` helper library."); throw e; }