Skip to content

Commit

Permalink
fix vite bundling stream error (#354)
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisradek authored Jan 5, 2022
1 parent 9616016 commit 343da6c
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 1 deletion.
6 changes: 6 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,12 @@
"main": "dist/cjs/index.js",
"module": "dist/pkg/index.js",
"types": "dist/pkg/index.d.ts",
"browser": {
"./dist/cjs/node": "dist/cjs/node.browser.js",
"./dist/cjs/node.js": "dist/cjs/node.browser.js",
"./dist/pkg/node.js": "dist/pkg/node.browser.js",
"./dist/pkg/node": "./dist/pkg/node.browser.js"
},
"files": [
"dist/",
"src/"
Expand Down
2 changes: 1 addition & 1 deletion src/generated/version.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
// This file is generated.
export const version = '1.32.1'
export const version = '1.33.0'
5 changes: 5 additions & 0 deletions src/node.browser.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
export class AnalyticsNode {
static async load(): Promise<never> {
throw new Error('AnalyticsNode is not available in browsers.')
}
}

0 comments on commit 343da6c

Please sign in to comment.