diff --git a/.github/workflows/size-limit.yml b/.github/workflows/size-limit.yml index 45456be8697..f3b0198fe1e 100644 --- a/.github/workflows/size-limit.yml +++ b/.github/workflows/size-limit.yml @@ -83,3 +83,4 @@ jobs: - uses: andresz1/size-limit-action@v1 with: github_token: ${{ secrets.GITHUB_TOKEN }} + build_script: build-prod diff --git a/.size-limit.js b/.size-limit.js index 2061cdfaf00..7d6c634c20c 100644 --- a/.size-limit.js +++ b/.size-limit.js @@ -24,12 +24,9 @@ const path = require('node:path'); * Looks like: * * { - * lexical: 'packages/lexical/dist/index.js', - * '@lexical/rich-text': 'packages/lexical-rich-text/dist/index.js', + * lexical: 'packages/lexical/dist/Lexical.js', + * '@lexical/rich-text': 'packages/lexical-rich-text/dist/LexicalRichText.js', * } - * - * Currently this alias map points at the cjs version of the build product, - * as that is what was measured previously in #3600. */ const {packagesManager} = require('./scripts/shared/packagesManager'); const getAliasType = (type) =>