Skip to content

Commit

Permalink
feat: add rpt2 prefix to remaining errors (#382)
Browse files Browse the repository at this point in the history
- 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
  • Loading branch information
agilgur5 authored Jul 12, 2022
1 parent 76109fc commit 0628482
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/check-tsconfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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"'.`);
}
2 changes: 1 addition & 1 deletion src/tslib.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

0 comments on commit 0628482

Please sign in to comment.