0.8.8 • Published 8 months ago
@open-editor/rollup v0.8.8
@open-editor/rollup
A rollup plugin for fast find source code.
Valid only during development, requires Node.js version 14+.
Install
npm i @open-editor/rollup -D
Usage
// rollup.config.ts
import OpenEditor from '@open-editor/rollup';
export default defineConfig({
plugins: [
OpenEditor({
/* options */
}),
// other plugins
],
});
Configuration
interface Options {
/**
* source rootDir path
*
* @default process.cwd()
*/
rootDir?: string;
/**
* render the toggle into the browser
*
* @default true
*/
displayToggle?: boolean;
/**
* Disable hover effect from CSS when inspector is enabled
*
* @default true
*/
disableHoverCSS?: boolean;
/**
* Ignoring components in some directories, using glob pattern syntax for matching
*
* @see https://en.wikipedia.org/wiki/Glob_(programming)
*
* @default '\/**\/node_modules\/**\/*'
*/
ignoreComponents?: string | string[];
/**
* exit the check after opening the editor or component tree
*
* @default true
*/
once?: boolean;
/**
* Internal server configuration
*/
server?: {
/**
* enable https
*
* @see https://nodejs.org/api/tls.html#tls_tls_createsecurecontext_options
*/
https?: {
key: string;
cert: string;
};
};
/**
* custom openEditor handler
*
* @default 'launch-editor'
*/
onOpenEditor?(file: string): void;
}
Playgrounds
Source code | Online trial |
---|---|
rollup/react15 | StackBlitz |
rollup/vue2 | StackBlitz |
0.8.8
8 months ago
0.8.7
8 months ago
0.8.5
11 months ago
0.8.4
12 months ago
0.8.6
11 months ago
0.8.3
1 year ago
0.8.2
1 year ago
0.8.1
1 year ago
0.8.0
1 year ago
0.7.4
1 year ago
0.7.3
1 year ago
0.7.2
1 year ago
0.7.1
1 year ago
0.7.0
1 year ago
0.6.4
1 year ago
0.6.3
1 year ago
0.6.2
2 years ago
0.6.1
2 years ago
0.6.0
2 years ago
0.5.3
2 years ago
0.5.2
2 years ago
0.5.0
2 years ago
0.4.1
2 years ago
0.4.0
2 years ago
0.3.0
2 years ago
0.2.3
2 years ago
0.2.2
2 years ago
0.2.1
2 years ago
0.2.0
2 years ago
0.1.0
2 years ago
0.0.16
2 years ago
0.0.15
2 years ago
0.0.14
2 years ago
0.0.13
2 years ago
0.0.12
2 years ago
0.0.11
2 years ago
0.0.10
2 years ago
0.0.9
2 years ago