Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Browser side usage: "browserify" and/or browser.js ? #1585

Closed
jpduvet opened this issue Nov 9, 2022 · 4 comments
Closed

Browser side usage: "browserify" and/or browser.js ? #1585

jpduvet opened this issue Nov 9, 2022 · 4 comments

Comments

@jpduvet
Copy link

jpduvet commented Nov 9, 2022

For browser side usage, the doc advises to use browserify. There is also a browser.js file aside the pino.js file.
Which file should we import?

@jsumners
Copy link
Member

jsumners commented Nov 9, 2022

I don't know anything about bundlers, but this supposedly does something:

"browser": "./browser.js",

@mcollina
Copy link
Member

cc @ShogunPanda

@ShogunPanda
Copy link
Contributor

My advice would be to import browser.js and see if it works.

@github-actions
Copy link

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 20, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants