Skip to content

Commit 59369d1

Browse files
Fix build by using require for new cjs deps (#545)
* Fix build by using require for new cjs deps * Fix getGlobalThis name and symbol-observable default import
1 parent a398425 commit 59369d1

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

src/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ import * as base from '@most/prelude'
99
import { of, empty, never } from './source/core'
1010
import { from } from './source/from'
1111
import { periodic } from './source/periodic'
12-
import provideSymbolObservable from 'symbol-observable/ponyfill'
13-
import { getPolyfill as getGlobalThis } from 'globalthis'
12+
const getGlobalThis = require('globalthis').getPolyfill
13+
const provideSymbolObservable = require('symbol-observable/ponyfill').default
1414

1515
const symbolObservable = provideSymbolObservable(getGlobalThis())
1616

src/observable/getObservable.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
/** @author Brian Cavalier */
33
/** @author John Hann */
44

5-
import provideSymbolObservable from 'symbol-observable/ponyfill'
6-
import { getPolyfill as getGlobalThis } from 'globalthis'
5+
const getGlobalThis = require('globalthis').getPolyfill
6+
const provideSymbolObservable = require('symbol-observable/ponyfill').default
77

88
const symbolObservable = provideSymbolObservable(getGlobalThis())
99

test/most-test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import { spec, referee } from 'buster'
22

33
import * as most from '../src/index'
4-
import provideSymbolObservable from 'symbol-observable/ponyfill'
5-
import { getPolyfill as getGlobalThis } from 'globalthis'
4+
const getGlobalThis = require('globalthis').getPolyfill
5+
const provideSymbolObservable = require('symbol-observable/ponyfill').default
66

77
const symbolObservable = provideSymbolObservable(getGlobalThis())
88

0 commit comments

Comments
 (0)