Skip to content

Commit

Permalink
Handle browser field object in build command
Browse files Browse the repository at this point in the history
  • Loading branch information
1aron committed May 2, 2024
1 parent 1c5e179 commit fd0f91d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/techor/src/commands/build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -225,6 +225,9 @@ export default async function build() {
}

if (pkg.browser) {
if (typeof pkg.browser !== 'string') {
throw new Error('Not implemented for browser field object.')
}
addBuild(exploreMapptedEntry(pkg.browser), { format: 'iife', file: pkg.browser })
}

Expand Down

0 comments on commit fd0f91d

Please sign in to comment.