From 78d0897f82c3035ff4a8d628014bcdc77e10cb85 Mon Sep 17 00:00:00 2001
From: Victor Lin <13424970+victorlin@users.noreply.github.com>
Date: Fri, 2 Dec 2022 20:51:59 -0800
Subject: [PATCH] Use default export to avoid Webpack 5 warning
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
In Webpack 5, named exports from JSON modules are no longer supported¹.
This is in anticipation of Auspice using Webpack 5 in a future release,
but it should be compatible with the current release.
¹ https://webpack.js.org/migrate/5/#using-named-exports-from-json-modules
---
auspice_client_customisation/splash.js | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/auspice_client_customisation/splash.js b/auspice_client_customisation/splash.js
index b06c118..05eef96 100644
--- a/auspice_client_customisation/splash.js
+++ b/auspice_client_customisation/splash.js
@@ -1,7 +1,7 @@
import React from "react"; // eslint-disable-line
import { handleDroppedFiles } from "./handleDroppedFiles";
import { P, Bold, Title, NextstrainTitle, CenterContent, Line, GitHub } from './styles';
-import { version, dependencies } from "../package.json";
+import pkg from "../package.json";
class SplashContent extends React.Component {
@@ -108,7 +108,7 @@ class SplashContent extends React.Component {
- {`auspice.us ${version} (Auspice ${dependencies.auspice})`} + {`auspice.us ${pkg.version} (Auspice ${pkg.dependencies.auspice})`}