Skip to content

feat(client): create browser build#4329

Merged
timsuchanek merged 9 commits intomasterfrom
williamluke4/issue3252
Nov 26, 2020
Merged

feat(client): create browser build#4329
timsuchanek merged 9 commits intomasterfrom
williamluke4/issue3252

Conversation

@williamluke4
Copy link

@williamluke4 williamluke4 commented Nov 23, 2020

Fixes #3252

Copy link
Contributor

@timsuchanek timsuchanek left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you please make sure, that the index-browser.js is always there?
The index.js we are for example shipping by default:
https://github.com/prisma/prisma/blob/master/src/packages/client/index.js

@williamluke4 williamluke4 force-pushed the williamluke4/issue3252 branch from a29ef65 to b54a719 Compare November 26, 2020 07:38
@williamluke4 williamluke4 added this to the 2.13.0 milestone Nov 26, 2020

export const notSupportOnBrowser = (fnc: string, browser?: boolean) => {
if (browser)
return `() => {throw new Error(
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Formatting :D

@timsuchanek timsuchanek merged commit 7c1f062 into master Nov 26, 2020
@timsuchanek timsuchanek deleted the williamluke4/issue3252 branch November 26, 2020 09:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Expose types to the frontend for Next.js

2 participants