Skip to content

Interactive interface for browsing global, full-resolution satellite imagery

fix react being included multiple times

Benjamin King675801bf2329
diff --git a/tasks/buildJS.js b/tasks/buildJS.js
index d208f16d5..0ffb5fc51 100644
--- a/tasks/buildJS.js
+++ b/tasks/buildJS.js
@@ -13,7 +13,8 @@ const outputPath = outputDir + (isTest ? 'wv-test-bundle.js' : 'wv.js');
var bundler = browserify(entryPoint, {
debug: isDebug, // Include source maps (makes bundle size larger)
- fullPaths: isDebug // For use with https://www.npmjs.com/package/disc
+ fullPaths: isDebug, // For use with https://www.npmjs.com/package/disc
+ require: ['react', 'react-dom'] // temporary fix for react being included multiple times
// plugin: [isDebug ? watchify : null]
}).transform('babelify', {
presets: ['env']