Skip to content

Commit

Permalink
chore: shim for browsers
Browse files Browse the repository at this point in the history
  • Loading branch information
achingbrain committed Apr 25, 2024
1 parent 87fe460 commit 1ffc70f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/it-glob/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,5 +50,8 @@
"devDependencies": {
"aegir": "^42.2.5",
"it-all": "^3.0.0"
},
"browser": {
"./dist/src/index.js": "./dist/src/index.browser.js"
}
}
4 changes: 4 additions & 0 deletions packages/it-glob/src/index.browser.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
// eslint-disable-next-line require-yield
export default async function * glob (): AsyncGenerator<string, void, undefined> {
throw new Error('it-glob does not work in browsers')
}

0 comments on commit 1ffc70f

Please sign in to comment.