
Updated the build target from Node to browser in `build.ts` to support browser environments. Incremented the package version from 2.1.0 to 2.1.1 to reflect the change.
14 lines
343 B
TypeScript
14 lines
343 B
TypeScript
import isolatedDecl from 'bun-plugin-isolated-decl';
|
|
|
|
// handles building the types for the library
|
|
await Bun.build({
|
|
entrypoints: ['./src/index.ts', './src/types.ts'],
|
|
outdir: './dist',
|
|
target: 'browser',
|
|
plugins: [
|
|
isolatedDecl({
|
|
forceGenerate: true, // Generate declaration files even if there are errors
|
|
})
|
|
],
|
|
});
|