Commit fd4ff2f4 authored by Travis Fischer's avatar Travis Fischer

feat: remove browser build; fix build errors

parent 38118a4a
...@@ -10,7 +10,6 @@ ...@@ -10,7 +10,6 @@
"types": "./build/index.d.ts", "types": "./build/index.d.ts",
"exports": { "exports": {
".": { ".": {
"browser": "./build/browser/index.js",
"import": "./build/index.js", "import": "./build/index.js",
"types": "./build/index.d.ts", "types": "./build/index.d.ts",
"default": "./build/index.js" "default": "./build/index.js"
......
import fs from 'node:fs' import * as fs from 'node:fs'
import os from 'node:os' import * as os from 'node:os'
import delay from 'delay' import delay from 'delay'
import { import {
......
...@@ -11,20 +11,6 @@ export default defineConfig([ ...@@ -11,20 +11,6 @@ export default defineConfig([
sourcemap: true, sourcemap: true,
minify: false, minify: false,
shims: true, shims: true,
dts: true, dts: true
external: ['undici']
},
{
entry: ['src/index.ts'],
outDir: 'build/browser',
target: 'chrome89',
platform: 'browser',
format: ['esm'],
splitting: false,
sourcemap: true,
minify: false,
shims: true,
dts: true,
external: ['undici']
} }
]) ])
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment