Comparing version 5.0.3 to 5.0.4
{ | ||
"name": "ipjs", | ||
"version": "5.0.3", | ||
"version": "5.0.4", | ||
"description": "Universal JavaScript build and packaging system", | ||
@@ -5,0 +5,0 @@ "main": "src/build.js", |
@@ -46,5 +46,11 @@ # Universal JavaScript Build and Packaging | ||
### Do not use mixed default default and named exports/imports | ||
### Only use named exports in files in the package.json exports map | ||
If you use default exports from files in the exports map: | ||
- CJS/JSDoc+Typescript users of your module will find that `tsc` fails to compile as it expects a the `.default` property to be present on anything `require`d from your module | ||
- If they switch to `.default` to satisfy `tsc`, node will resolve cjs at runtime via the `"require":` entry from the exports map which does not have a `.default` so will fail | ||
- If they switch back to no `.default`, running bundled cjs in the browser will also fail as it will be supplied the esm version where `.default` is present after all | ||
### Only export individual files in export map (no directories or pattern matching) | ||
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
56348
56