You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Please make sure that this is a bug. As per our GitHub Policy,
we only address code/doc bugs, performance issues, feature requests and
build/installation issues on GitHub. tag:bug_template
System information
Have I written custom code (as opposed to using a stock example script provided in TensorFlow.js): No.
OS Platform and Distribution (e.g., Linux Ubuntu 16.04): macOS 15 macbook pro m1 max
Mobile device (e.g. iPhone 8, Pixel 2, Samsung Galaxy) if the issue happens on mobile device: No
import{defineConfig}from'vite'importpathfrom'node:path'importelectronfrom'vite-plugin-electron/simple'importvuefrom'@vitejs/plugin-vue'// Vuetifyimportvuetifyfrom'vite-plugin-vuetify'import{viteStaticCopy}from'vite-plugin-static-copy'// https://vitejs.dev/config/exportdefaultdefineConfig({server: {headers: {"Cross-Origin-Opener-Policy": "same-origin","Cross-Origin-Embedder-Policy": "require-corp"}},preview: {headers: {"Cross-Origin-Opener-Policy": "same-origin","Cross-Origin-Embedder-Policy": "require-corp"}},plugins: [vue(),vuetify({autoImport: true}),electron({main: {// Shortcut of `build.lib.entry`.entry: 'electron/main.ts',// External packages that should not be bundledexternal: ['electron','bonjour','electron-store','get-port','realm'],// Build optionsbuildOptions: {minify: false,},},preload: {// Shortcut of `build.rollupOptions.input`.// Preload scripts may contain Web assets, so use the `build.rollupOptions.input` instead `build.lib.entry`.input: path.join(__dirname,'electron/preload.ts'),},// Ployfill the Electron and Node.js API for Renderer process.// If you want use Node.js in Renderer process, the `nodeIntegration` needs to be enabled in the Main process.// See https://github.com/electron-vite/vite-plugin-electron-rendererrenderer: {resolve: {'realm': {type: 'cjs'}}},}),viteStaticCopy({targets: [{src: 'node_modules/@itk-wasm/image-io/dist/pipelines/*.{js,wasm,wasm.zst}',dest: 'pipelines'},{src: 'node_modules/@itk-wasm/dicom/dist/pipelines/*.{js,wasm,wasm.zst}',dest: 'pipelines'},{src: 'node_modules/@tensorflow/tfjs-backend-wasm/dist/*.wasm',dest: 'tfjs-backend-wasm'}],})],worker: {format: 'es'},optimizeDeps: {exclude: ['@itk-wasm/dicom','@itk-wasm/image-io']},})
Please make sure that this is a bug. As per our
GitHub Policy,
we only address code/doc bugs, performance issues, feature requests and
build/installation issues on GitHub. tag:bug_template
System information
Describe the current behavior
This is an electron application. In the fronend main.js file we run:
console output:
1 'threads count'
Describe the expected behavior
console output:
4 'threads count'
vite.config.js
package.json
The text was updated successfully, but these errors were encountered: