mirror of
https://github.com/vrtmrz/obsidian-livesync.git
synced 2025-12-13 17:55:56 +00:00
brushup readme
add delete handling icon fix
This commit is contained in:
@@ -1,40 +1,37 @@
|
||||
import typescript from '@rollup/plugin-typescript';
|
||||
import { nodeResolve } from '@rollup/plugin-node-resolve';
|
||||
import commonjs from '@rollup/plugin-commonjs';
|
||||
import nodePolyfills from 'rollup-plugin-polyfill-node';
|
||||
import typescript from "@rollup/plugin-typescript";
|
||||
import { nodeResolve } from "@rollup/plugin-node-resolve";
|
||||
import commonjs from "@rollup/plugin-commonjs";
|
||||
import nodePolyfills from "rollup-plugin-polyfill-node";
|
||||
|
||||
const isProd = (process.env.BUILD === 'production');
|
||||
const isProd = process.env.BUILD === "production";
|
||||
|
||||
const banner =
|
||||
`/*
|
||||
const banner = `/*
|
||||
THIS IS A GENERATED/BUNDLED FILE BY ROLLUP
|
||||
if you want to view the source visit the plugins github repository
|
||||
*/
|
||||
`;
|
||||
|
||||
export default {
|
||||
input: 'main.ts',
|
||||
output: {
|
||||
dir: '.',
|
||||
sourcemap: 'inline',
|
||||
sourcemapExcludeSources: isProd,
|
||||
format: 'cjs',
|
||||
exports: 'default',
|
||||
banner,
|
||||
},
|
||||
// treeshake: "safest",
|
||||
external: ['obsidian'],
|
||||
plugins: [
|
||||
typescript({exclude:["pouchdb-browser.js"]}),
|
||||
nodePolyfills(
|
||||
// // {crypto:true}
|
||||
{ include: "pouchdb-browser" }
|
||||
),
|
||||
nodeResolve({
|
||||
browser: true,
|
||||
// preferBuiltins: true
|
||||
}),
|
||||
commonjs(),
|
||||
|
||||
]
|
||||
input: "main.ts",
|
||||
output: {
|
||||
dir: ".",
|
||||
sourcemap: "inline",
|
||||
sourcemapExcludeSources: isProd,
|
||||
format: "cjs",
|
||||
exports: "default",
|
||||
banner,
|
||||
},
|
||||
// treeshake: "safest",
|
||||
external: ["obsidian"],
|
||||
plugins: [
|
||||
typescript({ exclude: ["pouchdb-browser.js", "pouchdb-browser-webpack"] }),
|
||||
nodeResolve({
|
||||
browser: true,
|
||||
}),
|
||||
commonjs(),
|
||||
// nodePolyfills(
|
||||
// // // {crypto:true}
|
||||
// { include: "pouchdb-browser" }
|
||||
// ),
|
||||
],
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user