import { pathToFileURL } from 'node:url' import MagicString from 'magic-string' import { parseQuery, parseURL } from 'ufo' import { createUnplugin } from 'unplugin' import { stripLiteral } from 'strip-literal' export interface PureAnnotationsOptions { sourcemap: boolean functions: string[] } export const pureAnnotationsPlugin = createUnplugin((options: PureAnnotationsOptions) => { const FUNCTION_RE = new RegExp(`(?