-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Testing inline vite webworker syntax.
- Loading branch information
1 parent
d749c68
commit e410da0
Showing
8 changed files
with
15,550 additions
and
19,811 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
import { defineConfig } from 'vite'; | ||
import wasm from 'vite-plugin-wasm'; | ||
import topLevelAwait from 'vite-plugin-top-level-await'; | ||
|
||
export default defineConfig({ | ||
// optimizeDeps: { | ||
// exclude: ['shared-DB-worker'] | ||
// }, | ||
|
||
build: { | ||
target: 'es2020', | ||
lib: { | ||
entry: 'lib/src/index.js', // The entry point for your library | ||
fileName: (_format) => `index.js`, // Output file naming convention | ||
formats: ['es'] | ||
}, | ||
rollupOptions: { | ||
// Ensure to externalize dependencies that shouldn't be bundled into your library | ||
external: [], | ||
output: {} | ||
} | ||
}, | ||
plugins: [], | ||
worker: { | ||
format: 'es', | ||
plugins: () => [wasm(), topLevelAwait()] | ||
} | ||
}); |
Oops, something went wrong.