commit ac82511ddd17d5472ae3cfea9bbad9754f5a4d62 Author: Simon Cambier <simon.cambier@protonmail.com> Date: Sat Oct 22 08:23:42 2022 +0200 Screw that cache, seriously. commit 8ba40d1be73daaaffea09e07bc56c339266db9b6 Author: Simon Cambier <simon.cambier@protonmail.com> Date: Fri Oct 21 22:36:48 2022 +0200 Stuff commit 27b8fd7dc809be9714a109d3a458eb1276a47e2e Author: Simon Cambier <simon.cambier@protonmail.com> Date: Fri Oct 21 22:22:20 2022 +0200 Moved files commit fb1349c914907e586e103ca54fb04b9ddd45ef5d Author: Simon Cambier <simon.cambier@protonmail.com> Date: Thu Oct 20 22:25:29 2022 +0200 Removed duplicate code commit e7371138e60cbe4155cfd4fb44e3ee1d2e3ee088 Author: Simon Cambier <simon.cambier@protonmail.com> Date: Thu Oct 20 21:50:09 2022 +0200 Moved a bunch of files commit 2ee1b2a0e799d4b41ab3a444d8cc44dfff5b5623 Author: Simon Cambier <simon.cambier@protonmail.com> Date: Thu Oct 20 21:32:21 2022 +0200 Removed useless code commit 76c530dfb9adbad1bbe9079de2330fe43a044249 Author: Simon Cambier <simon.cambier@protonmail.com> Date: Thu Oct 20 20:44:11 2022 +0200 Split file reading and indexing
47 lines
1.3 KiB
JavaScript
47 lines
1.3 KiB
JavaScript
import { nodeResolve } from '@rollup/plugin-node-resolve'
|
|
import commonjs from '@rollup/plugin-commonjs'
|
|
import { base64 } from 'rollup-plugin-base64'
|
|
import typescript from '@rollup/plugin-typescript'
|
|
import svelte from 'rollup-plugin-svelte'
|
|
import autoPreprocess from 'svelte-preprocess'
|
|
import copy from 'rollup-plugin-copy'
|
|
import { terser } from 'rollup-plugin-terser'
|
|
import webWorkerLoader from 'rollup-plugin-web-worker-loader'
|
|
|
|
const banner = `/*
|
|
THIS IS A GENERATED/BUNDLED FILE BY ROLLUP
|
|
if you want to view the source visit the plugins github repository
|
|
*/
|
|
`
|
|
|
|
const production = !process.env.ROLLUP_WATCH
|
|
|
|
export default {
|
|
input: './src/main.ts',
|
|
output: {
|
|
file: './dist/main.js',
|
|
sourcemap: !production && 'inline',
|
|
format: 'cjs',
|
|
exports: 'default',
|
|
banner,
|
|
},
|
|
external: ['obsidian'],
|
|
plugins: [
|
|
nodeResolve({ browser: true }),
|
|
svelte({
|
|
preprocess: autoPreprocess(),
|
|
}),
|
|
typescript(),
|
|
commonjs(),
|
|
base64({ include: '**/*.wasm' }),
|
|
copy({
|
|
targets: [
|
|
{ src: 'manifest.json', dest: 'dist' },
|
|
{ src: 'assets/styles.css', dest: 'dist' },
|
|
{ src: 'assets/.gitignore', dest: 'dist' },
|
|
],
|
|
}),
|
|
webWorkerLoader({ inline: true, forceInline: true, targetPlatform: "browser" }),
|
|
production && terser(),
|
|
],
|
|
} |