@3cr/viewer-browser 0.0.6 → 0.0.8
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/.idea/workspace.xml +1 -1
- package/dist/Viewer3CR.js +18 -0
- package/dist/{3cr-viewer-browser.mjs → Viewer3CR.mjs} +6686 -6981
- package/dist/Viewer3CR.umd.js +18 -0
- package/dist/style.css +1 -1
- package/package.json +3 -3
- package/vite.config.mts +7 -4
- package/dist/3cr-viewer-browser.js +0 -18
- package/dist/3cr-viewer-browser.umd.js +0 -18
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@3cr/viewer-browser",
|
|
3
|
-
"version": "0.0.
|
|
4
|
-
"main": "./dist/
|
|
5
|
-
"module": "dist/
|
|
3
|
+
"version": "0.0.8",
|
|
4
|
+
"main": "./dist/Viewer3CR.umd.js",
|
|
5
|
+
"module": "dist/Viewer3CR.umd.js",
|
|
6
6
|
"homepage": "https://docs.3cr.singular.health",
|
|
7
7
|
"repository": {
|
|
8
8
|
"type": "git",
|
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: '
|
|
35
|
-
fileName: "
|
|
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
|
-
|
|
56
|
-
|
|
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
|
},
|