Skip to content

Make images smaller using best-in-class codecs, right in the browser.

JavaScript

Remove TypeScript-specific static Compress import (#338)

Tiger Oakes32f2b4e573c7
diff --git a/src/components/App/index.tsx b/src/components/App/index.tsx
index e28b498e..8a1eb498 100644
--- a/src/components/App/index.tsx
+++ b/src/components/App/index.tsx
@@ -9,9 +9,6 @@ import '../../lib/SnackBar';
import Intro from '../intro';
import '../custom-els/LoadingSpinner';
-// This is imported for TypeScript only. It isn't used.
-import Compress from '../compress';
-
const compressPromise = import(
/* webpackChunkName: "main-app" */
'../compress',
@@ -31,7 +28,7 @@ interface Props {}
interface State {
file?: File | Fileish;
- Compress?: typeof Compress;
+ Compress?: typeof import('../compress').default;
}
export default class App extends Component<Props, State> {