Skip to content

Commit

Permalink
chore: enable unpkg alias again (#701)
Browse files Browse the repository at this point in the history
  • Loading branch information
wardpeet authored Aug 17, 2020
1 parent 3488411 commit ba1c047
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/tall-paws-end.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'microbundle': patch
---

re-enable unpkg alias for umd bundles as described in the readme
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,7 @@ function getMain({ options, entry, format }) {
);
mainsByFormat.cjs = replaceName(pkg['cjs:main'] || 'x.js', mainNoExtension);
mainsByFormat.umd = replaceName(
pkg['umd:main'] || 'x.umd.js',
pkg['umd:main'] || pkg.unpkg || 'x.umd.js',
mainNoExtension,
);

Expand Down

0 comments on commit ba1c047

Please sign in to comment.