Skip to content

Instantly share code, notes, and snippets.

@wlee221
Last active June 13, 2022 18:32
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wlee221/6d98d96740bea6f53327b4db4a432616 to your computer and use it in GitHub Desktop.
Save wlee221/6d98d96740bea6f53327b4db4a432616 to your computer and use it in GitHub Desktop.
Remove CommonJS or AMD dependencies optimization bailouts warnings for AWS Amplify
// 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