Replies: 2 comments 5 replies
-
@ScriptedAlchemy Can you suggest solution? It is major problem for us with dual ESM+CJS packages These packages usually has three # root of the package
./package.json # main package with vestions and other meta info
./dist/esm/package.json # here is just { type: module }
./dist/cjs/package.json # here is just { type: commonjs } |
Beta Was this translation helpful? Give feedback.
0 replies
-
Just point it directly at what you want to share. Use the import key on the share object and just put the path to ESM if you want ESM. Or use a trailing slash on the package name. For example, "@sentry/browser/" then set the required version by importing the package.json and pass it the key for the package. |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi, im trying to share
@sentry/browser
and in result I have warnings about it version:This warning appeared after updating
@sentry/browser
- now this package is dual (esm + cjs)Beta Was this translation helpful? Give feedback.
All reactions