network-terminal 1.0.4 → 1.0.6
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/standalone/vite.config.js +16 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "network-terminal",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.6",
|
|
4
4
|
"description": "A browser-based terminal UI for monitoring Fetch/XHR requests with real-time display of routes, payloads, and responses",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.mjs",
|
|
@@ -1,6 +1,22 @@
|
|
|
1
1
|
import { defineConfig } from 'vite';
|
|
2
2
|
import react from '@vitejs/plugin-react';
|
|
3
|
+
import path from 'path';
|
|
4
|
+
import { fileURLToPath } from 'url';
|
|
5
|
+
|
|
6
|
+
const __dirname = path.dirname(fileURLToPath(import.meta.url));
|
|
7
|
+
const nodeModules = path.resolve(__dirname, '../node_modules');
|
|
3
8
|
|
|
4
9
|
export default defineConfig({
|
|
5
10
|
plugins: [react()],
|
|
11
|
+
resolve: {
|
|
12
|
+
alias: {
|
|
13
|
+
'react': path.join(nodeModules, 'react'),
|
|
14
|
+
'react-dom': path.join(nodeModules, 'react-dom'),
|
|
15
|
+
'react/jsx-runtime': path.join(nodeModules, 'react/jsx-runtime'),
|
|
16
|
+
'react/jsx-dev-runtime': path.join(nodeModules, 'react/jsx-dev-runtime'),
|
|
17
|
+
},
|
|
18
|
+
},
|
|
19
|
+
optimizeDeps: {
|
|
20
|
+
include: ['react', 'react-dom', 'react-dom/client', 'react/jsx-runtime', 'react/jsx-dev-runtime'],
|
|
21
|
+
},
|
|
6
22
|
});
|