Start working on tests.

This commit is contained in:
Joshua Bemenderfer
2023-02-07 13:33:23 -05:00
parent ea6eb7bd94
commit ac821e448d
29 changed files with 154 additions and 121 deletions

View 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`
]
}
}
})