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

feat(remix-dev): add opt-in Vanilla Extract cache #5735

Merged
merged 24 commits into from
Mar 14, 2023

Conversation

markdalgleish
Copy link
Member

@markdalgleish markdalgleish commented Mar 9, 2023

Closes: #5524

  • Docs
  • Tests

For now this is opt-in since the cache is powered by a brand new Vanilla Extract compiler that uses vite-node. Since this is a large architectural change, we'll want to ensure it's working correctly in the wild before making it the default. As a result, I've also left this option undocumented until we get some initial feedback.

Testing Strategy:

All tests that exercise the Vanilla Extract integration are now also being run against the new compiler.

@changeset-bot
Copy link

changeset-bot bot commented Mar 9, 2023

🦋 Changeset detected

Latest commit: 53a7a10

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 18 packages
Name Type
@remix-run/dev Minor
create-remix Minor
@remix-run/css-bundle Minor
remix Minor
@remix-run/architect Minor
@remix-run/cloudflare Minor
@remix-run/cloudflare-pages Minor
@remix-run/cloudflare-workers Minor
@remix-run/deno Minor
@remix-run/eslint-config Minor
@remix-run/express Minor
@remix-run/netlify Minor
@remix-run/node Minor
@remix-run/react Minor
@remix-run/serve Minor
@remix-run/server-runtime Minor
@remix-run/testing Minor
@remix-run/vercel Minor

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@markdalgleish markdalgleish marked this pull request as ready for review March 10, 2023 04:57
@@ -1,219 +1,30 @@
import { dirname, join, extname } from "path";
import type { IdentifierOption } from "@vanilla-extract/integration";
Copy link
Member Author

@markdalgleish markdalgleish Mar 13, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Git didn't track this one very well — the original contents of this file have been moved to vanillaExtractPluginUncached.ts. vanillaExtractPlugin.ts now just switches between the cached and uncached plugins since their implementations are so different.

Copy link
Collaborator

@chaance chaance left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Minor feedback on the tests, otherwise 👍

integration/deterministic-build-output-test.ts Outdated Show resolved Hide resolved
@markdalgleish markdalgleish merged commit bf9d0a9 into dev Mar 14, 2023
@markdalgleish markdalgleish deleted the markdalgleish/vanilla-extract-cache branch March 14, 2023 00:39
@github-actions github-actions bot added the awaiting release This issue has been fixed and will be released soon label Mar 14, 2023
@github-actions
Copy link
Contributor

🤖 Hello there,

We just published version v0.0.0-nightly-bf9d0a9-20230314 which includes this pull request. If you'd like to take it for a test run please try it out and let us know what you think!

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
awaiting release This issue has been fixed and will be released soon CLA Signed package:dev
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants