Skip to content

Commit

Permalink
Fix Rollup bundle output being written to .es.js instead of .esm… (#609)
Browse files Browse the repository at this point in the history
* Fix rollup format string change

* Add changeset
  • Loading branch information
kitten committed Mar 12, 2020
1 parent 8cd5416 commit bafd2df
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
10 changes: 10 additions & 0 deletions .changeset/few-teachers-pretend.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
---
'@urql/exchange-graphcache': patch
'@urql/exchange-multipart-fetch': patch
'@urql/exchange-retry': patch
'@urql/exchange-suspense': patch
'@urql/core': patch
'next-urql': patch
---

Fix Rollup bundle output being written to .es.js instead of .esm.js
4 changes: 2 additions & 2 deletions scripts/rollup/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ const config = {
};

const output = (format = 'cjs', ext = '.js') => ({
chunkFileNames: '[hash].[format]' + ext,
entryFileNames: '[name].[format]' + ext,
chunkFileNames: '[hash].' + format + ext,
entryFileNames: '[name].' + format + ext,
dir: './dist',
exports: 'named',
externalLiveBindings: false,
Expand Down

0 comments on commit bafd2df

Please sign in to comment.