一覧へ戻る
rollup-community/rollup-plugin-bookmarklet(新しいタブで開きます)
主要言語: JavaScript
Rollup plugin for bookmarklet
- star 数
- 3
- watcher 数
- 1
- fork 数
- 0
- issue 数
- 14
- 最終更新
- 2026/10/31
主要言語: JavaScript
Rollup plugin for bookmarklet
Rollup plugin for bookmarklet.
It adds javascript: prefix to code.
npm:
npm i -D rollup-plugin-bookmarklet
Yarn:
yarn add -D rollup-plugin-bookmarklet
pnpm:
pnpm add -D rollup-plugin-bookmarklet
Use rollup-plugin-bookmarklet in Rollup config.
JavaScript:
import terser from '@rollup/plugin-terser' import bookmarklet from 'rollup-plugin-bookmarklet' export default { input: 'src/main.js', output: { file: 'bundle.js', format: 'iife' }, plugins: [ terser(), bookmarklet() ] }
TypeScript:
import terser from '@rollup/plugin-terser' import typescript from '@rollup/plugin-typescript' import type { RollupOptions } from 'rollup' import bookmarklet from 'rollup-plugin-bookmarklet' const config: RollupOptions = { input: 'src/main.ts', output: { file: 'bundle.js', format: 'iife' }, plugins: [ typescript(), terser(), bookmarklet() ] } export default config