Skip to content

Commit 3e1b840

Browse files
authored
chore(nx): bust build cache on babel config change (redwoodjs#6443)
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.
1 parent e8661a2 commit 3e1b840

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

nx.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@
1717
"{projectRoot}/**/*"
1818
],
1919
"prod": [
20-
"!{projectRoot}/**/*.test.{js,jsx,ts,tsx}"
20+
"!{projectRoot}/**/*.test.{js,jsx,ts,tsx}",
21+
"{workspaceRoot}/babel.config.js"
2122
]
2223
},
2324
"targetDefaults": {

0 commit comments

Comments
 (0)