Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use tracking context by default #4514

merged 1 commit into from May 31, 2021


Copy link

@adamwathan adamwathan commented May 31, 2021

This PR switches the JIT engine to use the tracking context by default, which relies on native dependency tracking within build runners instead of running our own chokidar instance. This is slightly slower but much more reliable and not prone to race conditions. This is basically just setting TAILWIND_DISABLE_TOUCH=true by default, and removing any actual conditions around that flag.

This depends on the new PostCSS dir-dependency message type which is not supported by all build tools yet, but is very close. Webpack 4 and 5 both support it already, Snowpack supports it, and we have open pull requests for adding support to Parcel and postcss-cli.

After this is released, you will still be able to use the chokidar-driven dependency tracking system by setting TAILWIND_MODE=watch.

@adamwathan adamwathan merged commit b574273 into master May 31, 2021
3 checks passed
@adamwathan adamwathan deleted the use-tracking-context-by-default branch May 31, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
None yet

Successfully merging this pull request may close these issues.

None yet

1 participant