File tree Expand file tree Collapse file tree 3 files changed +31
-3
lines changed Expand file tree Collapse file tree 3 files changed +31
-3
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " bnc-onboard" ,
3
- "version" : " 0.2.2 " ,
3
+ "version" : " 0.2.3 " ,
4
4
"main" : " dist/cjs/index.js" ,
5
5
"module" : " dist/esm/index.js" ,
6
6
"files" : [
Original file line number Diff line number Diff line change @@ -32,7 +32,17 @@ export default [
32
32
babel ( { exclude : "node_modules/**" } ) ,
33
33
builtins ( ) ,
34
34
terser ( )
35
- ]
35
+ ] ,
36
+ moduleContext : id => {
37
+ const thisAsWindowForModules = [
38
+ "node_modules/intl-messageformat/lib/core.js" ,
39
+ "node_modules/intl-messageformat/lib/compiler.js"
40
+ ]
41
+
42
+ if ( thisAsWindowForModules . some ( id_ => id . trimRight ( ) . endsWith ( id_ ) ) ) {
43
+ return "window"
44
+ }
45
+ }
36
46
} ,
37
47
{
38
48
input : "src/index.js" ,
@@ -56,6 +66,16 @@ export default [
56
66
commonjs ( ) ,
57
67
babel ( { exclude : "node_modules/**" } )
58
68
] ,
69
+ moduleContext : id => {
70
+ const thisAsWindowForModules = [
71
+ "node_modules/intl-messageformat/lib/core.js" ,
72
+ "node_modules/intl-messageformat/lib/compiler.js"
73
+ ]
74
+
75
+ if ( thisAsWindowForModules . some ( id_ => id . trimRight ( ) . endsWith ( id_ ) ) ) {
76
+ return "window"
77
+ }
78
+ } ,
59
79
output : [
60
80
{
61
81
dir : "dist/esm" ,
Original file line number Diff line number Diff line change 37
37
38
38
$: if ($app .autoSelectWallet ) {
39
39
const module = deviceWallets .find (m => m .name === $app .autoSelectWallet );
40
- handleWalletSelect (module );
40
+ if (module ) {
41
+ handleWalletSelect (module );
42
+ } else {
43
+ setModalData ();
44
+ }
41
45
} else {
46
+ setModalData ();
47
+ }
48
+
49
+ function setModalData () {
42
50
if (deviceWallets .find (wallet => wallet .preferred )) {
43
51
// if preferred wallets, then split in to preferred and not preferred
44
52
primaryWallets = deviceWallets .filter (wallet => wallet .preferred );
You can’t perform that action at this time.
0 commit comments