Skip to content

Commit 1bfa52a

Browse files
committed
fix: upgrade dependencies
includes workaround for issues introduced in rollup/rollup#3710
1 parent f490e32 commit 1bfa52a

File tree

3 files changed

+455
-441
lines changed

3 files changed

+455
-441
lines changed

TopLevelOptionsPlugin.mjs

+6
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,12 @@
44
export default function () {
55
return {
66
renderChunk(code) {
7+
// workaround for issues introduced by https://github.com/rollup/rollup/pull/3710/files
8+
code = code
9+
.replace(/bitsy__default\['default'\]/g, 'bitsy')
10+
.replace(/var bitsy__default = /, 'bitsy = bitsy || ');
11+
12+
// move options
713
const pattern = /^var\s+hackOptions.*?\s?=\s?{[\s\S]*?^};$/gm;
814
const matches = code.match(pattern);
915
if (!matches) {

0 commit comments

Comments
 (0)