diff service/wifi/rollup.config.js @ 1485:62be73d368df

fixes for streamedgraph build and a surprise with multi-value wifiBands Ignore-this: eea822327a0c66c4462ffd7c404079e5 darcs-hash:9341cc7bcc320e6ef7da3c79e9e3cd3c279bebb6
author drewp <drewp@bigasterisk.com>
date Thu, 09 Jan 2020 00:38:59 -0800
parents 2e598cbcabf4
children b267511ec4fc
line wrap: on
line diff
--- a/service/wifi/rollup.config.js	Mon Jan 06 23:47:30 2020 -0800
+++ b/service/wifi/rollup.config.js	Thu Jan 09 00:38:59 2020 -0800
@@ -6,6 +6,12 @@
 
 const workaround_jsonld_module_system_picker = "process = {version: '1.0.0'}";
 const workaround_some_browser_detector = "global = window";
+const workaround_jsonld_expand_issue = {
+  namedExports: {
+    jsonld: ["expand"], // fixes "expand is not exported by node_modules/jsonld/lib/index.js"
+    '../../../streamed-graph/node_modules/jsonld/lib/index': ['expand'],
+  }
+};
 
 // This makes <dom-module> element totally unavailable. I only meant to prune one of the
 // two, but of course why is streamed-graph's node_modules/**/dom-module.js file getting 
@@ -32,11 +38,7 @@
       browser: true,
     }),
     typescript(),
-    commonjs({
-      namedExports: {
-        jsonld: ["expand"], // fixes "expand is not exported by node_modules/jsonld/lib/index.js"
-      },
-    }),
+    commonjs(workaround_jsonld_expand_issue),
     replace({ ...replacements, delimiters: ["", ""] }),
   ],
 };