@open-editor/rollup

A rollup plugin for fast find source code.
Valid only during development, requires Node.js version 14+.
Install
npm -D i @open-editor/rollup
Usage
import OpenEditor from '@open-editor/rollup';
export default defineConfig({
plugins: [
OpenEditor({
}),
],
});
Configuration
interface Options {
rootDir?: string;
displayToggle?: boolean;
colorMode?: 'system' | 'light' | 'dark';
disableHoverCSS?: boolean;
retainFrame?: boolean;
once?: boolean;
onOpenEditor?(file: string): void;
}
Playgrounds