tavern-harness 0.1.2 → 0.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/main.tsx +5 -5
- package/vite.config.ts +4 -0
package/package.json
CHANGED
package/src/main.tsx
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
1
|
+
import { StrictMode } from 'react';
|
|
2
|
+
import { createRoot } from 'react-dom/client';
|
|
3
3
|
import App from './App';
|
|
4
4
|
import { initDatabase } from './db/database';
|
|
5
5
|
import { applyThemeFromCache } from './theme/theme';
|
|
@@ -15,9 +15,9 @@ async function bootstrap() {
|
|
|
15
15
|
}
|
|
16
16
|
|
|
17
17
|
bootstrap().then(() => {
|
|
18
|
-
|
|
19
|
-
<
|
|
18
|
+
createRoot(document.getElementById('root')!).render(
|
|
19
|
+
<StrictMode>
|
|
20
20
|
<App />
|
|
21
|
-
</
|
|
21
|
+
</StrictMode>
|
|
22
22
|
);
|
|
23
23
|
});
|
package/vite.config.ts
CHANGED
|
@@ -263,6 +263,7 @@ function sandboxProxyPlugin(): Plugin {
|
|
|
263
263
|
export default defineConfig({
|
|
264
264
|
plugins: [react(), corsProxyPlugin(), sandboxProxyPlugin()],
|
|
265
265
|
optimizeDeps: {
|
|
266
|
+
force: true,
|
|
266
267
|
include: [
|
|
267
268
|
'@dnd-kit/core',
|
|
268
269
|
'@dnd-kit/sortable',
|
|
@@ -272,7 +273,10 @@ export default defineConfig({
|
|
|
272
273
|
'katex',
|
|
273
274
|
'marked',
|
|
274
275
|
'react',
|
|
276
|
+
'react/jsx-runtime',
|
|
277
|
+
'react/jsx-dev-runtime',
|
|
275
278
|
'react-dom',
|
|
279
|
+
'react-dom/client',
|
|
276
280
|
'use-sync-external-store/shim/with-selector',
|
|
277
281
|
'zustand',
|
|
278
282
|
],
|