File: skip-rollup-plugin-typescript.patch

package info (click to toggle)
node-locate-character 2.0.5%2Brepack-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 144 kB
  • sloc: javascript: 69; makefile: 2
file content (24 lines) | stat: -rw-r--r-- 678 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
Some options of plugin no longer work, use command line instead

--- a/rollup.config.js
+++ b/rollup.config.js
@@ -1,15 +1,7 @@
-import typescript from 'rollup-plugin-typescript';
-
 export default {
-	entry: 'src/index.ts',
-	moduleName: 'locateCharacter',
-	plugins: [
-		typescript({
-			typescript: require('typescript')
-		})
-	],
-	targets: [
-		{ dest: 'dist/locate-character.es.js', format: 'es' },
-		{ dest: 'dist/locate-character.umd.js', format: 'umd' }
+	input: 'src/index.js',
+	output: [
+		{ name: 'locateCharacter', file: 'dist/locate-character.es.js', format: 'es' },
+		{ name: 'locateCharacter', file: 'dist/locate-character.umd.js', format: 'umd' }
 	]
 };