diff --git a/src/consumer/index.ts b/src/consumer/index.ts index d5062f8..88ebe72 100644 --- a/src/consumer/index.ts +++ b/src/consumer/index.ts @@ -3,6 +3,8 @@ import {dropUselessTokens, eruler, gobble} from './utils'; import {split} from './split'; import {CriticalProcessingError} from './error'; +export {CriticalProcessingError}; + const replace = (from: number, to: number, source: string, past: string) => { const start = source.slice(0, from); const end = source.slice(to); diff --git a/src/index.ts b/src/index.ts index 83ecf9a..a4a167f 100644 --- a/src/index.ts +++ b/src/index.ts @@ -3,3 +3,4 @@ export type {ExtractOptions, ComposeOptions} from './api'; export {extract, compose} from './api'; export {linkRefs, unlinkRefs} from './json'; +export {CriticalProcessingError} from './consumer';