fix: initialize DICOM decoder modules in browser workers
This commit is contained in:
1 parent
dd29258828
commit
7a1d18dfc6
8 files changed
+105
-41
No files matched your search
@@ -6,6 +6,7 @@ import vue from "@vitejs/plugin-vue";
|
||||
import VueI18nPlugin from "@intlify/unplugin-vue-i18n/vite";
|
||||
import legacy from "@vitejs/plugin-legacy";
|
||||
import { compression } from "vite-plugin-compression2";
|
||||
import { daikonCommonJS } from "./scripts/daikon-commonjs.ts";
|
||||
|
||||
function bundledAceAssets(): Plugin {
|
||||
return {
|
||||
@@ -65,6 +66,7 @@ function bundledPdfAssets(): Plugin {
|
||||
}
|
||||
|
||||
const plugins = [
|
||||
daikonCommonJS(),
|
||||
bundledPdfAssets(),
|
||||
bundledAceAssets(),
|
||||
vue(),
|
||||
@@ -91,6 +93,7 @@ export default defineConfig(({ command }) => {
|
||||
return {
|
||||
plugins,
|
||||
resolve,
|
||||
worker: { plugins: () => [daikonCommonJS()] },
|
||||
server: {
|
||||
proxy: {
|
||||
"/api/command": {
|
||||
@@ -106,6 +109,7 @@ export default defineConfig(({ command }) => {
|
||||
return {
|
||||
plugins,
|
||||
resolve,
|
||||
worker: { plugins: () => [daikonCommonJS()] },
|
||||
base: "",
|
||||
build: {
|
||||
rollupOptions: {
|
||||
|
||||
Reference in new issue
Block a user