Last active
June 13, 2022 18:32
-
-
Save wlee221/6d98d96740bea6f53327b4db4a432616 to your computer and use it in GitHub Desktop.
Remove CommonJS or AMD dependencies optimization bailouts warnings for AWS Amplify
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// add `allowedCommonJsDependencies` to `projects.architect.build.options`: | |
"build": { | |
"builder": "@angular-devkit/build-angular:browser", | |
... | |
"options": { | |
"allowedCommonJsDependencies": [ | |
"@aws-crypto/crc32", | |
"@aws-crypto/sha256-browser", | |
"@aws-crypto/sha256-js", | |
"crypto-js/sha256", | |
"axios", | |
"buffer", | |
"camelcase-keys", | |
"crypto-js/core", | |
"crypto-js/enc-base64", | |
"crypto-js/hmac-sha256", | |
"crypto-js/lib-typedarrays", | |
"fast-xml-parser", | |
"isomorphic-unfetch", | |
"js-cookie", | |
"lodash", | |
"lodash/get", | |
"lodash/isEmpty", | |
"lodash/isEqual", | |
"qrcode", | |
"style-dictionary/lib/utils/deepExtend", | |
"style-dictionary/lib/utils/flattenProperties", | |
"style-dictionary/lib/utils/references/usesReference", | |
"ulid", | |
"url", | |
"uuid", | |
"xstate/lib/actions", | |
"zen-observable" | |
], | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment