Skip to content

Commit

Permalink
correct lib0 cjs file rewrite
Browse files Browse the repository at this point in the history
  • Loading branch information
dmonad committed Apr 24, 2020
1 parent b2a8acd commit ceae246
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,10 @@ export default [{
sourcemap: true,
paths: path => {
if (/^lib0\//.test(path)) {
return `lib0/dist/${path.slice(5)}`
return `lib0/dist/${path.slice(5, -3)}.cjs`
}
if (/^y-protocols\//.test(path)) {
return `y-protocols/dist/${path.slice(12, -3)}.cjs`
}
return path
}
Expand Down

0 comments on commit ceae246

Please sign in to comment.