Skip to content

Commit 415cec0

Browse files
committed
Fix thisundefined rewrite (use globalThis)
1 parent 2a16fa4 commit 415cec0

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

packages/sdk/rollup.config.mts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ function onwarn(log: RollupLog, rollupWarn: (log: RollupLog) => void): void {
5252
function nodejs(): RollupOptions {
5353
return {
5454
input: './dist/nodejs/src/exports.js',
55+
context: 'globalThis',
5556
output: [
5657
{
5758
format: 'es',
@@ -105,6 +106,7 @@ function nodejsTypes(): RollupOptions {
105106
function browser(): RollupOptions {
106107
return {
107108
input: './dist/browser/src/exports.js',
109+
context: 'globalThis',
108110
output: [
109111
{
110112
format: 'es',

0 commit comments

Comments
 (0)