Skip to content

Commit c69f823

Browse files
committed
[chore] Upgrade to Docusaurus 3
1 parent c84d6cd commit c69f823

21 files changed

+25421
-19066
lines changed

package-lock.json

Lines changed: 25333 additions & 19034 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/@stylexjs/unplugin/src/index.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,8 @@ const unpluginInstance = createUnplugin((userOptions = {}) => {
7979
// Persist rules to disk in dev to bridge multiple plugin containers/processes.
8080
// Off by default; enable if your dev setup runs separate Node processes per environment.
8181
devPersistToDisk = false,
82+
// Skip import-source detection and always run the transform
83+
skipImportCheck = false,
8284
// Dev integration mode: 'full' (runtime + html), 'css-only' (serve CSS endpoint only), 'off'
8385
devMode = 'full',
8486
...stylexOptions
@@ -253,7 +255,7 @@ const unpluginInstance = createUnplugin((userOptions = {}) => {
253255
// Only handle JS-like files; avoid parsing CSS/JSON/etc
254256
const JS_LIKE_RE = /\.[cm]?[jt]sx?(\?|$)/;
255257
if (!JS_LIKE_RE.test(id)) return null;
256-
if (!shouldHandle(code)) return null;
258+
if (!skipImportCheck && !shouldHandle(code)) return null;
257259
const result = await runBabelTransform(code, id, '@stylexjs/unplugin');
258260
const { metadata } = result;
259261
if (!stylexOptions.runtimeInjection) {

packages/docs/blog/2023-12-05-introducing-stylex.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@ applications, reusable component libraries, and statically typed codebases.
3232
4. StyleX is fully typed and provides type utilities to allow fine-grained
3333
control over what properties and values can be accepted by a component.
3434

35+
{/* truncate */}
36+
3537
## What are the advantages of StyleX?
3638

3739
### Fast

packages/docs/blog/2023-12-29-Release-v0.4.1.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ fixing bugs and making improvements. Here are some of the highlights:
2525
- Bundler plugins will now skip files that don't contain StyleX, resulting in
2626
faster build times.
2727

28+
{/* truncate */}
29+
2830
## Bug Fixes
2931

3032
- Fixed a bug where the ESLint plugin was sometimes unable to resolve local

packages/docs/blog/2024-01-25-Release-v0.5.0.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ We are introducing a new `attrs` function so StyleX works well in more
2121
places. `attrs` returns an object with a `class` string and a `style`
2222
string.
2323

24+
{/* truncate */}
25+
2426
## New `sort-keys` rule for the Eslint plugin
2527

2628
A new `@stylexjs/sort-keys` plugin has been introduced which will sort styles

packages/docs/blog/2024-04-16-Release-v0.6.1.mdx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ You can now provide a fallback value for variables defined with the `defineVars`
2525
This new capability does not introduce any new API. Instead, the existing `firstThatWorks` API
2626
now supports variables as arguments.
2727

28+
{/* truncate */}
29+
2830
```tsx
2931
import * as stylex from '@stylexjs/stylex';
3032
import {colors} from './tokens.stylex';

packages/docs/blog/2024-06-25-Release-v0.7.0.mdx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@ We are excited to offer this alternative to the bundler-based setup and are
3131
choosing to release the CLI in an experimental state. We would love to hear
3232
your feedback on how it works for you and what improvements you would like to see.
3333

34+
{/* truncate */}
35+
3436
Special thanks to [Joel Austin](https://github.com/Jta26) for his work on the CLI.
3537

3638

packages/docs/blog/2024-06-28-Release-v0.7.3.mdx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,6 @@ tags:
1212
---
1313

1414
StyleX v0.7.3 is now available with a fix to the Rollup plugin, which
15-
didn't previously include all the necessary files in the publish to NPM.
15+
didn't previously include all the necessary files in the publish to NPM.
16+
17+
{/* truncate */}

packages/docs/blog/2024-10-06-Release-v0.8.0.mdx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@ This rule enforces our opinions on when and how you should use CSS shorthand pro
2626
It disallows the use of multi-value shorthands for shorthands, and disallows certain
2727
properties altogether.
2828

29+
{/* truncate */}
30+
2931
```tsx
3032
const styles = stylex({
3133
invalidShorthands: {

packages/docs/blog/2024-11-01-Release-v0.9.3.mdx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ on the same element, *the last applied theme wins*, just as you might expect.
2929
However, previously, if you instead applied one theme on a parent element,
3030
and another theme on a child element, the themes would end up being merged.
3131

32+
{/* truncate */}
33+
3234
```tsx
3335
// tokens.stylex.ts
3436
import * as stylex from '@stylexjs/stylex';

0 commit comments

Comments
 (0)