@wf-financing/ui 1.4.4 → 1.4.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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wf-financing/ui",
3
- "version": "1.4.4",
3
+ "version": "1.4.6",
4
4
  "exports": {
5
5
  ".": {
6
6
  "import": "./dist/index.es.js",
package/src/config/url.ts CHANGED
@@ -1 +1 @@
1
- export const HEADLESS_SDK_URL = 'https://unpkg.com/@wf-financing/headless@1/dist/index.es.js';
1
+ export const HEADLESS_SDK_URL = 'https://cdn.jsdelivr.net/npm/@wf-financing/headless@1/dist/index.es.js';
package/vite.config.ts CHANGED
@@ -3,10 +3,11 @@ import react from '@vitejs/plugin-react';
3
3
  import path from 'path';
4
4
  import { defineConfig } from 'vite';
5
5
 
6
- export default defineConfig({
6
+ export default defineConfig(({ mode }) => ({
7
7
  plugins: [react()],
8
8
  define: {
9
9
  'process.env': {},
10
+ 'process.env.NODE_ENV': JSON.stringify(mode),
10
11
  },
11
12
  server: {
12
13
  host: true,
@@ -24,4 +25,4 @@ export default defineConfig({
24
25
  external: [],
25
26
  },
26
27
  },
27
- });
28
+ }));