Package list node-d3-shape / f55d6b3b-bbec-4baf-af14-b9b0e1f9dff4/main debian / patches / remove-unsupported-syntax.patch
f55d6b3b-bbec-4baf-af14-b9b0e1f9dff4/main

Tree @f55d6b3b-bbec-4baf-af14-b9b0e1f9dff4/main (Download .tar.gz)

remove-unsupported-syntax.patch @f55d6b3b-bbec-4baf-af14-b9b0e1f9dff4/mainraw · history · blame

Description: Remove unsupported syntax
 This syntax is not supported in packaged rollup/node yet.
 Minified file is generated by uglifyjs.terser command line.
Index: node-d3-shape/rollup.config.js
===================================================================
--- node-d3-shape.orig/rollup.config.js
+++ node-d3-shape/rollup.config.js
@@ -1,4 +1,3 @@
-import {terser} from "rollup-plugin-terser";
 import * as meta from "./package.json";
 
 const config = {
@@ -17,20 +16,5 @@ const config = {
 };
 
 export default [
-  config,
-  {
-    ...config,
-    output: {
-      ...config.output,
-      file: `dist/${meta.name}.min.js`
-    },
-    plugins: [
-      ...config.plugins,
-      terser({
-        output: {
-          preamble: config.output.banner
-        }
-      })
-    ]
-  }
+  config
 ];