Function-type arguments passed into module options will be erased
KazariEX opened this issue · 2 comments
KazariEX commented
Since JSON.stringify()
does not allow the inclusion of function types, it renders any transformers used with it ineffective.
// module.ts
export const shikiOptions = {
highlight: ${JSON.stringify(highlightOptions, null, 2)},
// ...
};
KazariEX commented
KazariEX commented
I think a util can be provided to inject global transformers into highlightOptions
at runtime.