diff --git a/next.config.js b/next.config.js
index 767719f..91ef62f 100644
--- a/next.config.js
+++ b/next.config.js
@@ -1,4 +1,6 @@
/** @type {import('next').NextConfig} */
-const nextConfig = {}
+const nextConfig = {
+ reactStrictMode: true,
+};
-module.exports = nextConfig
+module.exports = nextConfig;
diff --git a/package-lock.json b/package-lock.json
index 0cfd498..39447c5 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -16,7 +16,8 @@
"next": "13.4.5",
"react": "18.2.0",
"react-dom": "18.2.0",
- "typescript": "5.1.3"
+ "typescript": "5.1.3",
+ "utfdump_wasm": "file:pkg"
}
},
"node_modules/@babel/runtime": {
@@ -3541,6 +3542,10 @@
"punycode": "^2.1.0"
}
},
+ "node_modules/utfdump_wasm": {
+ "resolved": "pkg",
+ "link": true
+ },
"node_modules/watchpack": {
"version": "2.4.0",
"resolved": "https://registry.npmjs.org/watchpack/-/watchpack-2.4.0.tgz",
@@ -3651,6 +3656,9 @@
"funding": {
"url": "https://github.com/sponsors/colinhacks"
}
+ },
+ "pkg": {
+ "version": "0.1.0"
}
},
"dependencies": {
@@ -6031,6 +6039,9 @@
"punycode": "^2.1.0"
}
},
+ "utfdump_wasm": {
+ "version": "file:pkg"
+ },
"watchpack": {
"version": "2.4.0",
"resolved": "https://registry.npmjs.org/watchpack/-/watchpack-2.4.0.tgz",
diff --git a/package.json b/package.json
index 3564fbc..16e4cfc 100644
--- a/package.json
+++ b/package.json
@@ -17,6 +17,7 @@
"next": "13.4.5",
"react": "18.2.0",
"react-dom": "18.2.0",
- "typescript": "5.1.3"
+ "typescript": "5.1.3",
+ "utfdump_wasm": "file:pkg"
}
}
diff --git a/src/app/inspector.tsx b/src/app/inspector.tsx
deleted file mode 100644
index 1ac1089..0000000
--- a/src/app/inspector.tsx
+++ /dev/null
@@ -1,36 +0,0 @@
-'use client';
-
-import { useState } from 'react';
-import styles from './page.module.css'
-import { TextField } from './textfield';
-
-type InspectorProps = {
- sourceUrl: string,
-};
-
-export function Inspector(props: InspectorProps) {
- const [currentString, setCurrentString] = useState('');
-
- return (
-
- Source code is available
- here.
- Text entered above is not sent over the network.
- {currentString}
+ Source code is available here.
+ Text entered above is not sent over the network.
+
Loading WASM...
+ ); + } + + return ( +{spongebob_case(currentString)}
*/} +{ctx.wasm.spongebob_case(props.currentString)}
+