Start working on tests.
This commit is contained in:
23
packages/js/vite.config.js
Normal file
23
packages/js/vite.config.js
Normal file
@@ -0,0 +1,23 @@
|
||||
// vite.config.js
|
||||
import { defineConfig } from 'vite'
|
||||
|
||||
export default defineConfig({
|
||||
build: {
|
||||
lib: {
|
||||
// Could also be a dictionary or array of multiple entry points
|
||||
entry: {
|
||||
'index': 'src/index.ts',
|
||||
'document': 'src/document.ts',
|
||||
'parser': 'src/parser.ts',
|
||||
'readers/js-string': 'src/readers/js-string.ts',
|
||||
'readers/node-readline': 'src/readers/node-readline.ts',
|
||||
}
|
||||
},
|
||||
rollupOptions: {
|
||||
external: [
|
||||
`node:fs`,
|
||||
`node:readline/promises`
|
||||
]
|
||||
}
|
||||
}
|
||||
})
|
||||
Reference in New Issue
Block a user