Skip to content

Commit

Permalink
fix: upgrade dependencies
Browse files Browse the repository at this point in the history
includes workaround for issues introduced in rollup/rollup#3710
  • Loading branch information
seleb committed Aug 30, 2020
1 parent f490e32 commit 1bfa52a
Show file tree
Hide file tree
Showing 3 changed files with 455 additions and 441 deletions.
6 changes: 6 additions & 0 deletions TopLevelOptionsPlugin.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@
export default function () {
return {
renderChunk(code) {
// workaround for issues introduced by https://github.com/rollup/rollup/pull/3710/files
code = code
.replace(/bitsy__default\['default'\]/g, 'bitsy')
.replace(/var bitsy__default = /, 'bitsy = bitsy || ');

// move options
const pattern = /^var\s+hackOptions.*?\s?=\s?{[\s\S]*?^};$/gm;
const matches = code.match(pattern);
if (!matches) {
Expand Down

0 comments on commit 1bfa52a

Please sign in to comment.