diff --git a/package.json b/package.json index 26846cb42..354de7c77 100644 --- a/package.json +++ b/package.json @@ -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/" diff --git a/src/generated/version.ts b/src/generated/version.ts index 255e6036e..0c50aa82f 100644 --- a/src/generated/version.ts +++ b/src/generated/version.ts @@ -1,2 +1,2 @@ // This file is generated. -export const version = '1.32.1' +export const version = '1.33.0' diff --git a/src/node.browser.ts b/src/node.browser.ts new file mode 100644 index 000000000..37ec4c812 --- /dev/null +++ b/src/node.browser.ts @@ -0,0 +1,5 @@ +export class AnalyticsNode { + static async load(): Promise { + throw new Error('AnalyticsNode is not available in browsers.') + } +}