When utilizing braintree-web 3.61.0 with Vue.js 2.6.11 and TypeScript 3.8.3, I organize the necessary components of braintree-web into a service in this manner:
import { client, hostedFields, applePay } from 'braintree-web';
export default { client , hostedFields, applePay };
Observing my builds using webpack-bundle-analyzer, it seems that all of 'braintree-web' is being included. The code snippet above yields the same outcome as:
import braintree from 'braintree-web';
export default braintree;
Any recommendations for resolving this issue?