Skip to content

Commit

Permalink
chore(nx): bust build cache on babel config change (redwoodjs#6443)
Browse files Browse the repository at this point in the history
nx uses caching to determine which steps to do/not do when running something like yarn build

Out of the box it does it's best to determine which changes correctly trigger a rebuild, however it doesn't really account for config files such as a babel config.

Changes to the babel config file, need to bust the build cache as they can have a huge effect on the built artifacts given we use babel to build our JS. This PR ensures that changes to the babel config, correctly allow for a rebuild of the framework.
  • Loading branch information
virtuoushub authored Sep 27, 2022
1 parent e8661a2 commit 3e1b840
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion nx.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@
"{projectRoot}/**/*"
],
"prod": [
"!{projectRoot}/**/*.test.{js,jsx,ts,tsx}"
"!{projectRoot}/**/*.test.{js,jsx,ts,tsx}",
"{workspaceRoot}/babel.config.js"
]
},
"targetDefaults": {
Expand Down

0 comments on commit 3e1b840

Please sign in to comment.