Add babel-polyfill entry

This commit is contained in:
Jaco Greeff 2017-10-16 15:45:30 +02:00
parent b49d7ee29c
commit de6066d6b0
4 changed files with 33 additions and 31 deletions

60
js/package-lock.json generated
View File

@ -52,7 +52,7 @@
"@parity/parity.js": "1.8.7",
"@parity/shapeshift": "2.0.10",
"@parity/shared": "2.0.10",
"@parity/ui": "2.0.37",
"@parity/ui": "2.0.38",
"happypack": "3.1.0",
"lodash": "4.17.2",
"oo7": "0.5.3",
@ -76,7 +76,7 @@
"@parity/api": "2.0.10",
"@parity/dapp-vaults": "github:paritytech/dapp-vaults#f8a4e96b5f51b337151042d785123231b5fa487d",
"@parity/shared": "2.0.10",
"@parity/ui": "2.0.37",
"@parity/ui": "2.0.38",
"file-saver": "1.3.3",
"react": "15.6.1",
"react-dom": "15.6.1",
@ -92,7 +92,7 @@
"@parity/dapp-account": "github:paritytech/dapp-account#40e9c7475fbfe4e5f2c6f98e5e77c8e5ec90b99b",
"@parity/dapp-addresses": "github:paritytech/dapp-addresses#2268163148455943a2ab66cd239e44281ba7d8fc",
"@parity/shared": "2.0.10",
"@parity/ui": "2.0.37"
"@parity/ui": "2.0.38"
}
},
"@parity/dapp-addresses": {
@ -101,7 +101,7 @@
"@parity/api": "2.0.10",
"@parity/dapp-accounts": "github:paritytech/dapp-accounts#48e5276038ec8c2bfb7d89cc42cd90b692ead6a9",
"@parity/shared": "2.0.10",
"@parity/ui": "2.0.37"
"@parity/ui": "2.0.38"
}
},
"@parity/dapp-chaindeploy": {
@ -119,7 +119,7 @@
"@parity/api": "2.0.10",
"@parity/dapp-account": "github:paritytech/dapp-account#40e9c7475fbfe4e5f2c6f98e5e77c8e5ec90b99b",
"@parity/shared": "2.0.10",
"@parity/ui": "2.0.37"
"@parity/ui": "2.0.38"
}
},
"@parity/dapp-contracts": {
@ -129,7 +129,7 @@
"@parity/dapp-account": "github:paritytech/dapp-account#40e9c7475fbfe4e5f2c6f98e5e77c8e5ec90b99b",
"@parity/dapp-accounts": "github:paritytech/dapp-accounts#48e5276038ec8c2bfb7d89cc42cd90b692ead6a9",
"@parity/shared": "2.0.10",
"@parity/ui": "2.0.37"
"@parity/ui": "2.0.38"
}
},
"@parity/dapp-dapp-accounts": {
@ -137,7 +137,7 @@
"requires": {
"@parity/api": "2.0.10",
"@parity/shared": "2.0.10",
"@parity/ui": "2.0.37"
"@parity/ui": "2.0.38"
}
},
"@parity/dapp-dapp-methods": {
@ -145,7 +145,7 @@
"requires": {
"@parity/api": "2.0.10",
"@parity/shared": "2.0.10",
"@parity/ui": "2.0.37"
"@parity/ui": "2.0.38"
}
},
"@parity/dapp-dapp-visible": {
@ -153,7 +153,7 @@
"requires": {
"@parity/api": "2.0.10",
"@parity/shared": "2.0.10",
"@parity/ui": "2.0.37"
"@parity/ui": "2.0.38"
}
},
"@parity/dapp-dappreg": {
@ -161,7 +161,7 @@
"requires": {
"@parity/api": "2.0.10",
"@parity/shared": "2.0.10",
"@parity/ui": "2.0.37"
"@parity/ui": "2.0.38"
}
},
"@parity/dapp-develop": {
@ -171,7 +171,7 @@
"@parity/dapp-contracts": "github:paritytech/dapp-contracts#43b93c0f1c95fb69723096e67441614f05538e00",
"@parity/parity.js": "1.8.7",
"@parity/shared": "2.0.10",
"@parity/ui": "2.0.37",
"@parity/ui": "2.0.38",
"oo7": "0.5.3",
"oo7-parity": "0.6.8",
"oo7-react": "0.4.5",
@ -199,7 +199,7 @@
"@parity/api": "2.0.10",
"@parity/dapp-web": "github:paritytech/dapp-web#cafcd464d2eebc30f8b92b4786a7f8b7aa7a5a6d",
"@parity/shared": "2.0.10",
"@parity/ui": "2.0.37",
"@parity/ui": "2.0.38",
"react-markdown": "2.4.4"
},
"dependencies": {
@ -220,7 +220,7 @@
"requires": {
"@parity/api": "2.0.10",
"@parity/shared": "2.0.10",
"@parity/ui": "2.0.37"
"@parity/ui": "2.0.38"
}
},
"@parity/dapp-playground": {
@ -228,7 +228,7 @@
"requires": {
"@parity/api": "2.0.10",
"@parity/shared": "2.0.10",
"@parity/ui": "2.0.37"
"@parity/ui": "2.0.38"
}
},
"@parity/dapp-registry": {
@ -236,7 +236,7 @@
"requires": {
"@parity/api": "2.0.10",
"@parity/shared": "2.0.10",
"@parity/ui": "2.0.37",
"@parity/ui": "2.0.38",
"material-ui": "0.16.5"
}
},
@ -245,7 +245,7 @@
"requires": {
"@parity/api": "2.0.10",
"@parity/shared": "2.0.10",
"@parity/ui": "2.0.37"
"@parity/ui": "2.0.38"
}
},
"@parity/dapp-signaturereg": {
@ -264,7 +264,7 @@
"requires": {
"@parity/api": "2.0.10",
"@parity/shared": "2.0.10",
"@parity/ui": "2.0.37"
"@parity/ui": "2.0.38"
}
},
"@parity/dapp-status": {
@ -272,7 +272,7 @@
"requires": {
"@parity/api": "2.0.10",
"@parity/shared": "2.0.10",
"@parity/ui": "2.0.37",
"@parity/ui": "2.0.38",
"bytes": "2.4.0",
"format-number": "2.0.1"
}
@ -282,7 +282,7 @@
"requires": {
"@parity/api": "2.0.10",
"@parity/shared": "2.0.10",
"@parity/ui": "2.0.37"
"@parity/ui": "2.0.38"
}
},
"@parity/dapp-tokenreg": {
@ -301,7 +301,7 @@
"requires": {
"@parity/api": "2.0.10",
"@parity/shared": "2.0.10",
"@parity/ui": "2.0.37"
"@parity/ui": "2.0.38"
}
},
"@parity/dapp-wallet": {
@ -310,7 +310,7 @@
"@parity/api": "2.0.10",
"@parity/dapp-account": "github:paritytech/dapp-account#40e9c7475fbfe4e5f2c6f98e5e77c8e5ec90b99b",
"@parity/shared": "2.0.10",
"@parity/ui": "2.0.37"
"@parity/ui": "2.0.38"
}
},
"@parity/dapp-web": {
@ -318,7 +318,7 @@
"requires": {
"@parity/api": "2.0.10",
"@parity/shared": "2.0.10",
"@parity/ui": "2.0.37",
"@parity/ui": "2.0.38",
"base32.js": "0.1.0"
}
},
@ -374,27 +374,27 @@
}
},
"@parity/plugin-signer-account": {
"version": "github:paritytech/plugin-signer-account#672c200cddbadabcfded1554f92f56730d6a1b51",
"version": "github:paritytech/plugin-signer-account#71b699587850c0b844766b48afe429dbd30105ec",
"requires": {
"@parity/ui": "2.0.37"
"@parity/ui": "2.0.38"
}
},
"@parity/plugin-signer-default": {
"version": "github:paritytech/plugin-signer-default#c605729f7f71cd285a2365bc522033185ecf90a8",
"requires": {
"@parity/ui": "2.0.37"
"@parity/ui": "2.0.38"
}
},
"@parity/plugin-signer-hardware": {
"version": "github:paritytech/plugin-signer-hardware#8e3f1c34a95261f8cfd988b550cb2995bae8ca82",
"requires": {
"@parity/ui": "2.0.37"
"@parity/ui": "2.0.38"
}
},
"@parity/plugin-signer-qr": {
"version": "github:paritytech/plugin-signer-qr#abe6dade924e3bf317f24cc558c6def22738d140",
"requires": {
"@parity/ui": "2.0.37"
"@parity/ui": "2.0.38"
}
},
"@parity/shapeshift": {
@ -436,9 +436,9 @@
}
},
"@parity/ui": {
"version": "2.0.37",
"resolved": "https://registry.npmjs.org/@parity/ui/-/ui-2.0.37.tgz",
"integrity": "sha512-XC6Ov2rpSCCpbymz895UtCe1N1AYACqZTV8J4afMExH43oEXoXwXvxbBoHho2QkekKsGGZ1quAVdtNLTdVUnEA==",
"version": "2.0.38",
"resolved": "https://registry.npmjs.org/@parity/ui/-/ui-2.0.38.tgz",
"integrity": "sha512-SMkK8iTYhH2pTUBJtAW7sioe+lZGEKz/0MLijflGguOzbV3uQrlKy31YPrW1hyzPXIG36kA1D76Z98VrI7MWVg==",
"requires": {
"@parity/api": "2.0.10",
"@parity/etherscan": "2.0.10",

View File

@ -66,6 +66,7 @@
"babel-plugin-transform-react-remove-prop-types": "0.3.2",
"babel-plugin-transform-runtime": "6.23.0",
"babel-plugin-webpack-alias": "2.1.2",
"babel-polyfill": "6.26.0",
"babel-preset-env": "1.6.0",
"babel-preset-react": "6.24.1",
"babel-preset-stage-0": "6.24.1",

View File

@ -23,3 +23,4 @@ require('babel-register')({
return false;
}
});
require('babel-polyfill');

View File

@ -47,7 +47,7 @@ const isEmbed = EMBED === '1' || EMBED === 'true';
const entry = isEmbed
? { embed: './embed.js' }
: { bundle: './index.parity.js' };
: { bundle: ['babel-polyfill', './index.parity.js'] };
module.exports = {
cache: !isProd,