Upgrade gas-client (#164)

Uses latest UMD build for gas-client and externalizes the package to further reduce client bundle size
This commit is contained in:
Elisha Nuchi
2022-12-25 01:15:21 -05:00
committed by GitHub
parent 4718f4b870
commit 957367366b
4 changed files with 49 additions and 64 deletions
+8
View File
@@ -207,6 +207,14 @@ const DynamicCdnWebpackPluginConfig = {
version: packageVersion,
url: `https://unpkg.com/react-bootstrap@${packageVersion}/dist/react-bootstrap${packageSuffix}`,
};
// externalize gas-client to keep bundle size even smaller
case 'gas-client':
return {
name: packageName,
var: 'GASClient',
version: packageVersion,
url: `https://unpkg.com/gas-client@${packageVersion}/dist/index.js`,
};
// must include peer dependencies for any custom imports
case '@types/react':
return {