| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146 |
- import resolve from "@rollup/plugin-node-resolve";
- import { terser } from "rollup-plugin-terser";
- const PLUGINS = [resolve({ moduleDirectories: [".."] })];
- const EXTERNAL = ["single-file-core"];
- export default [{
- input: ["single-file-core/index.js"],
- output: [{
- file: "lib/single-file.js",
- format: "umd",
- name: "singlefile",
- plugins: []
- }],
- plugins: PLUGINS,
- external: EXTERNAL
- }, {
- input: ["single-file-core/processors/frame-tree/content/content-frame-tree.js"],
- output: [{
- file: "lib/single-file-frames.js",
- format: "umd",
- name: "singlefile",
- plugins: []
- }],
- plugins: PLUGINS,
- external: EXTERNAL
- }, {
- input: ["single-file-core/single-file-bootstrap.js"],
- output: [{
- file: "lib/single-file-bootstrap.js",
- format: "umd",
- name: "singlefileBootstrap",
- plugins: []
- }],
- plugins: PLUGINS,
- external: EXTERNAL
- }, {
- input: ["single-file-core/processors/hooks/content/content-hooks-web.js"],
- output: [{
- file: "lib/single-file-hooks.js",
- format: "iife",
- plugins: []
- }],
- plugins: PLUGINS,
- external: EXTERNAL
- }, {
- input: ["single-file-core/processors/hooks/content/content-hooks-frames-web.js"],
- output: [{
- file: "lib/single-file-hooks-frames.js",
- format: "iife",
- plugins: []
- }],
- plugins: PLUGINS,
- external: EXTERNAL
- }, {
- input: ["single-file-core/common/content-infobar-web.js"],
- output: [{
- file: "lib/single-file-infobar.js",
- format: "iife",
- plugins: [terser()]
- }],
- plugins: PLUGINS,
- external: EXTERNAL
- }, {
- input: ["src/core/content/content-infobar.js"],
- output: [{
- file: "lib/single-file-extension-infobar.js",
- format: "umd",
- name: "infobar",
- plugins: []
- }]
- }, {
- input: ["src/core/content/content-bootstrap.js"],
- output: [{
- file: "lib/single-file-extension-bootstrap.js",
- format: "iife",
- plugins: []
- }]
- }, {
- input: ["src/core/content/content-frames.js"],
- output: [{
- file: "lib/single-file-extension-frames.js",
- format: "iife",
- plugins: []
- }]
- }, {
- input: ["src/index.js"],
- output: [{
- file: "lib/single-file-extension-core.js",
- format: "umd",
- name: "extension",
- plugins: []
- }]
- }, {
- input: ["src/core/content/content.js"],
- output: [{
- file: "lib/single-file-extension.js",
- format: "iife",
- plugins: []
- }]
- }, {
- input: ["src/ui/content/content-ui-editor-init-web.js"],
- output: [{
- file: "lib/single-file-extension-editor-init.js",
- format: "iife",
- plugins: []
- }]
- }, {
- input: ["src/ui/content/content-ui-editor-web.js"],
- output: [{
- file: "lib/single-file-extension-editor.js",
- format: "iife",
- plugins: []
- }]
- }, {
- input: ["src/ui/content/content-ui-editor-helper-web"],
- output: [{
- file: "lib/single-file-extension-editor-helper.js",
- format: "umd",
- name: "singlefile",
- plugins: []
- }],
- plugins: PLUGINS,
- external: EXTERNAL
- }, {
- input: ["src/lib/single-file/browser-polyfill/chrome-browser-polyfill.js"],
- output: [{
- file: "lib/chrome-browser-polyfill.js",
- format: "iife",
- plugins: []
- }]
- }, {
- input: ["src/core/bg/index.js"],
- output: [{
- file: "lib/single-file-extension-background.js",
- format: "iife",
- plugins: []
- }]
- }, {
- input: ["src/lib/single-file/background.js"],
- output: [{
- file: "lib/single-file-background.js",
- format: "iife",
- plugins: []
- }]
- }];
|