scribe-widget 1.0.5 → 1.0.7

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "scribe-widget",
3
- "version": "1.0.5",
3
+ "version": "1.0.7",
4
4
  "description": "Floating panel widget for medical transcription using eka.scribe",
5
5
  "main": "dist/scribe-widget.umd.js",
6
6
  "module": "dist/scribe-widget.es.js",
@@ -14,7 +14,7 @@
14
14
  "prepublishOnly": "npm run clean && npm run build"
15
15
  },
16
16
  "dependencies": {
17
- "med-scribe-alliance-ts-sdk": "1.0.2",
17
+ "med-scribe-alliance-ts-sdk": "1.0.3",
18
18
  "react": "^18.2.0",
19
19
  "react-dom": "^18.2.0"
20
20
  },
package/vite.config.ts CHANGED
@@ -4,6 +4,11 @@ import { resolve } from 'path';
4
4
 
5
5
  export default defineConfig({
6
6
  plugins: [react()],
7
+ define: {
8
+ // Fix "process is not defined" error for browser
9
+ 'process.env.NODE_ENV': JSON.stringify('production'),
10
+ 'process.env': JSON.stringify({}),
11
+ },
7
12
  build: {
8
13
  lib: {
9
14
  entry: resolve(__dirname, 'src/index.tsx'),
@@ -19,7 +24,7 @@ export default defineConfig({
19
24
  },
20
25
  },
21
26
  cssCodeSplit: false,
22
- minify: 'terser',
27
+ minify: 'esbuild',
23
28
  },
24
29
  server: {
25
30
  port: 3000,