Something went wrong. Try again.
[READ-ONLY] Mirror of https://github.com/sxzz/unloader. Node.js loader with a Rollup-like interface.
Something went wrong. Try again.
123456789101112import pkg from '../../package.json' with { type: 'json' }import type { PluginContext } from '../plugin.ts'
export const sharedPluginContext: Pick<PluginContext, 'error' | 'meta'> = { error: (message) => { throw typeof message === 'string' ? new Error(message) : message }, meta: { unloaderVersion: pkg.version, },}