@3cr/viewer-browser 0.0.6 → 0.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": "@3cr/viewer-browser",
3
- "version": "0.0.6",
3
+ "version": "0.0.7",
4
4
  "main": "./dist/3cr-viewer-browser.umd.js",
5
5
  "module": "dist/3cr-viewer-browser.umd.js",
6
6
  "homepage": "https://docs.3cr.singular.health",
package/vite.config.mts CHANGED
@@ -29,10 +29,11 @@ export default defineConfig({
29
29
  ],
30
30
  define: { 'process.env': {} },
31
31
  build: {
32
+ target: 'esnext',
32
33
  lib: { // tell the build process to treat this project as library
33
34
  entry: './index.ts',
34
- name: '@3cr/viewer-browser',
35
- fileName: "3cr-viewer-browser",
35
+ name: 'Viewer3CR',
36
+ fileName: "Viewer3CR",
36
37
  formats: ['cjs', 'es', 'umd'],
37
38
  },
38
39
  rollupOptions: {
@@ -52,8 +53,10 @@ export default defineConfig({
52
53
  vue: 'Vue',
53
54
  },
54
55
  footer: `
55
- for (const key of Object.keys(globalThis.moduleName)) {
56
- globalThis[key] = globalThis.moduleName[key]
56
+ if (globalThis.Viewer3CR) {
57
+ for (const key of Object.keys(globalThis.Viewer3CR)) {
58
+ globalThis[key] = globalThis.Viewer3CR[key]
59
+ }
57
60
  }
58
61
  `
59
62
  },