-
-
Notifications
You must be signed in to change notification settings - Fork 449
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: add all babel config files to file dependency (#887)
- Loading branch information
Showing
1 changed file
with
13 additions
and
4 deletions.
There are no files selected for viewing
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
eafd20d
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@JLHwung Ideally it should be
addBuildDependency
, so changing something in configuration(s) invalidate cache of modules (https://github.com/webpack-contrib/postcss-loader/blob/master/src/index.js#L129), we apply the same logic forpostcss.config.js
and etc config fileseafd20d
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@alexander-akait Thanks for the heads up. I couldn't find info about
addBuildDependency
on webpack.js.org. IsloaderContext.addBuildDependency
available on webpack >= 2?eafd20d
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, only for webpack v5, but you use
const addBuildDependency = this.addBuildDependency || this.addDependency