Fixing rollup config to not error
This commit is contained in:
parent
67c9a25747
commit
5b5b65d814
|
@ -3,6 +3,7 @@
|
||||||
"title": "MetamorPOV",
|
"title": "MetamorPOV",
|
||||||
"version": "0.1.0",
|
"version": "0.1.0",
|
||||||
"description": "Enables customization of reader-insert stories by replacing author-provided hooks such as Y/n, pov/s, and vrb/do/present/.",
|
"description": "Enables customization of reader-insert stories by replacing author-provided hooks such as Y/n, pov/s, and vrb/do/present/.",
|
||||||
|
"type": "module",
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "git+https://git.viscogliosi-pate.com/jean/metamorpov.git"
|
"url": "git+https://git.viscogliosi-pate.com/jean/metamorpov.git"
|
||||||
|
|
|
@ -1,11 +1,14 @@
|
||||||
import { nodeResolve } from "@rollup/plugin-node-resolve";
|
import resolve from '@rollup/plugin-node-resolve';
|
||||||
import commonjs from '@rollup/plugin-commonjs';
|
import commonjs from '@rollup/plugin-commonjs';
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
input: 'src/replace-words.js',
|
input: 'src/replace-words.js',
|
||||||
output: {
|
output: [
|
||||||
|
{
|
||||||
file: 'src/content-script.js',
|
file: 'src/content-script.js',
|
||||||
format: 'cjs',
|
format: 'iife',
|
||||||
},
|
name: 'contentScript'
|
||||||
plugins: [nodeResolve(), commonjs()]
|
}
|
||||||
|
],
|
||||||
|
plugins: [resolve(), commonjs()]
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue