Skip to content

Commit f7961ea

Browse files
authored
Merge pull request #130 from blocknative/fix/build-environment
Update build environment. Closes #129
2 parents 56b38a7 + b15badb commit f7961ea

File tree

2 files changed

+2
-11
lines changed

2 files changed

+2
-11
lines changed

rollup.config.js

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -30,16 +30,6 @@ export default {
3030
},
3131
{ format: 'cjs', dir: 'dist/cjs/' }
3232
],
33-
moduleContext: id => {
34-
const thisAsWindowForModules = [
35-
'node_modules/intl-messageformat/lib/core.js',
36-
'node_modules/intl-messageformat/lib/compiler.js'
37-
]
38-
39-
if (thisAsWindowForModules.some(id_ => id.trimRight().endsWith(id_))) {
40-
return 'window'
41-
}
42-
},
4333
plugins: [
4434
json(),
4535
image(),
@@ -64,6 +54,7 @@ export default {
6454
'fortmatic',
6555
'squarelink',
6656
'authereum',
57+
'lodash.debounce',
6758
'regenerator-runtime/runtime'
6859
]
6960
}

src/stores.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import { writable, derived, get } from 'svelte/store'
2-
import debounce from 'lodash.debounce'
32
import { getBlocknative } from './services'
43
import { wait, makeQuerablePromise } from './utilities'
54
import { validateWalletInterface, validateType } from './validation'
@@ -13,6 +12,7 @@ import {
1312
} from './interfaces'
1413

1514
const { default: Cancelable } = require('promise-cancelable')
15+
const debounce = require('lodash.debounce')
1616

1717
export const app: WritableStore = writable({
1818
dappId: '',

0 commit comments

Comments
 (0)