diff --git a/src/App.tsx b/src/App.tsx
index 93aed70..cf4640d 100644
--- a/src/App.tsx
+++ b/src/App.tsx
@@ -3,7 +3,6 @@ import { SelectFile } from './SelectFile';
import { FileListing } from './features/file-listing/FileListing';
import { Footer } from './Footer';
-import { WasmTest } from './WasmTest';
function App() {
return (
@@ -15,7 +14,6 @@ function App() {
-
diff --git a/src/WasmTest.tsx b/src/WasmTest.tsx
deleted file mode 100644
index 679a189..0000000
--- a/src/WasmTest.tsx
+++ /dev/null
@@ -1,38 +0,0 @@
-import { loadLibParakeet, BlobSink, createArrayBufferReader } from '@jixun/libparakeet';
-
-/* c8 ignore start: test only code */
-function testWasm() {
- loadLibParakeet().then(async (mod) => {
- const data = new Uint8Array(0x2000);
- for (let i = 0; i < data.byteLength; i++) {
- data[i] = i & 0xff;
- }
- const src = createArrayBufferReader(data, mod);
- const sink = new BlobSink(mod);
- mod.rw_test(sink.getWriter(), src);
- const collected = sink.collectBlob();
- const copied = await collected.arrayBuffer();
- const copiedView = new Uint8Array(copied);
- for (let i = 0; i < copied.byteLength; i++) {
- if (copiedView[i] !== (i & 0xff)) {
- alert(`validate at pos ${i} failed`);
- return;
- }
- }
- alert('wasm validate ok!');
- });
-}
-
-export function WasmTest() {
- // Some secret test flags...
- if (localStorage.__dev_test !== '1') {
- return null;
- }
-
- return (
-
- );
-}
-/* c8 ignore stop: test only code */
diff --git a/vite.config.ts b/vite.config.ts
index 68e950a..604789d 100644
--- a/vite.config.ts
+++ b/vite.config.ts
@@ -93,7 +93,6 @@ export default defineConfig({
manualChunks: {
reacts: ['react', 'react-dom', 'react-promise-suspense', 'react-redux', '@reduxjs/toolkit'],
chakra: ['@chakra-ui/icons', '@chakra-ui/react', '@emotion/react', '@emotion/styled', 'framer-motion'],
- parakeet: ['@jixun/libparakeet'],
},
},
},