1 | // transpilers
|
2 | import 'babel-core/external-helpers';
|
3 |
|
4 | // workaround for error: `only one instance of babel/polyfill is allowed`
|
5 | // so, include the babel/polyfill into build, but load only single instance
|
6 | if (global && !global._babelPolyfill) {
|
7 | require('babel/polyfill');
|
8 | }
|
9 |
|
10 | export { Buffer } from 'buffer';
|
11 | import * as VirgilCryptoAPI from './src/browser';
|
12 | export const Version = PACKAGE_VERSION;
|
13 | export const VirgilCrypto = { ...{ Buffer: Buffer }, ...VirgilCryptoAPI };
|