Skip to content

Commit

Permalink
fix: rollup bug workaround
Browse files Browse the repository at this point in the history
  • Loading branch information
Jack-Works committed Oct 31, 2022
1 parent efe62e9 commit 05d5513
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
5 changes: 5 additions & 0 deletions .changeset/witty-bottles-hear.md
@@ -0,0 +1,5 @@
---
'@masknet/compartment': patch
---

rollup bug https://github.com/rollup/rollup/issues/4696 workaround
9 changes: 2 additions & 7 deletions packages/compartment/src/Evaluators.ts
@@ -1,10 +1,4 @@
import {
Module,
Module as TopModule,
setParentGlobalThis,
setParentImportHook,
setParentImportMetaHook,
} from './Module.js'
import { Module, setParentGlobalThis, setParentImportHook, setParentImportMetaHook } from './Module.js'
import type { ModuleSource } from './ModuleSource.js'
import type { ImportHook, ModuleHandler, VirtualModuleRecord } from './types.js'

Expand Down Expand Up @@ -85,6 +79,7 @@ export class Evaluators {
}
}
const TopEvaluators = Evaluators
const TopModule = Module
const realGlobalThis = globalThis

/** @internal */
Expand Down

0 comments on commit 05d5513

Please sign in to comment.