Fixing rollup config to not error
This commit is contained in:
		
							parent
							
								
									67c9a25747
								
							
						
					
					
						commit
						5b5b65d814
					
				| 
						 | 
				
			
			@ -3,6 +3,7 @@
 | 
			
		|||
  "title": "MetamorPOV",
 | 
			
		||||
  "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/.",
 | 
			
		||||
  "type": "module",
 | 
			
		||||
  "repository": {
 | 
			
		||||
    "type": "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';
 | 
			
		||||
 | 
			
		||||
export default {
 | 
			
		||||
  input: 'src/replace-words.js',
 | 
			
		||||
  output: {
 | 
			
		||||
  output: [
 | 
			
		||||
    {
 | 
			
		||||
      file: 'src/content-script.js',
 | 
			
		||||
    format: 'cjs',
 | 
			
		||||
  },
 | 
			
		||||
  plugins: [nodeResolve(), commonjs()]
 | 
			
		||||
      format: 'iife',
 | 
			
		||||
      name: 'contentScript'
 | 
			
		||||
    }
 | 
			
		||||
  ],
 | 
			
		||||
  plugins: [resolve(), commonjs()]
 | 
			
		||||
};
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue