Skip to content

feat(extractor): compose styled components other modules define - #736

Open
owjs3901 wants to merge 45 commits into
mainfrom
fix/imported-styled-definitions
Open

owjs3901 wants to merge 45 commits into
mainfrom
fix/imported-styled-definitions

Conversation

@owjs3901

@owjs3901 owjs3901 commented Oct 3, 2026 •

Copy link
Copy Markdown
Contributor

Refs #688 (A: 다른 파일과 include 라이브러리의 styled 정의를 모듈 해석으로 읽어 합성). #730 위에 쌓은 브랜치입니다. #706 #707 #710 #711 #722 #727 #728 #729 #730이 먼저 병합되어야 합니다.

요약

같은 파일에서 정의한 styled 컴포넌트는 이미 정적으로 합성되지만, 다른 모듈이나 include 라이브러리에서 import한 styled 컴포넌트는 불투명한 런타임 컴포넌트로 남아 계속 감싸졌습니다. 이제 빌드가 그 모듈의 정의를 읽어 같은 파일에서 정의한 것과 똑같이 합성합니다.

// base.ts
export const Base = styled.div`color: red; padding: 4px;`

// app.tsx
import { Base } from './base'
export const Card = styled(Base).attrs({ role: 'region' })`color: blue;`

이전에는 as: DevupAs = Base로 Base를 런타임에 한 번 더 렌더링했고, 지금은 Base의 태그와 스타일을 읽어 div에 color: blue(뒤 선언이 이김)와 padding: 4px를 직접 붙입니다.

동작

  • 모듈 해석: imported constant와 같은 해석기(상대 경로, tsconfig paths, 패키지 exports, include 라이브러리)로 모듈을 읽습니다. 모듈은 자신의 추출과 똑같이(별칭 변환 → 상수 인라인 → 방문) 컴파일하고, 그 안의 import도 같은 방식으로 따라갑니다. export { X } from, export * from, import { X }; export { X }, export default, 이름 바꾼 export, 순환 import를 처리합니다. 한 번의 추출 안에서 모듈은 한 번만 읽습니다.
  • 합성: styled(Imported)(...), styled(Imported).attrs(...), styled(Imported)\...`, Imported.withComponent(...), (Emotion cssprop),styled(UI.Imported)(namespace import)가 같은 파일 정의와 같은 규칙으로 합성됩니다. 속성+선택자+브레이크포인트+레이어마다 뒤 선언이 이기고, attrs는 순서대로 합쳐지며, 읽는 props(reads)와 shouldForwardProp`으로 props를 거릅니다. 합성된 스타일은 가져오는 파일이 자기 이름으로 만들므로 가져오는 파일의 CSS에 들어갑니다.
  • 의존성: 읽은 모듈(과 그 모듈이 읽은 모듈)은 imported constant처럼 dependencies로 보고되어, 그 모듈이 바뀌면 가져오는 파일이 다시 빌드됩니다. 플러그인 쪽 변경은 필요 없었습니다(vite addWatchFile, webpack/rsbuild addDependency, next 로더가 이미 이 목록을 씁니다).
  • 파일 간 컴포넌트 선택자(${ImportedChild} { ... }, [ImportedChild] 규칙 키): 정의하는 파일이 내보내는 styled 컴포넌트마다 마커 클래스를 붙이고, 선택하는 파일은 같은 마커를 읽습니다. 마커는 정의 모듈의 파일 번호와 export 이름의 정렬 순서로만 정해지는 순수 함수라, 두 파일(과 두 프로세스)이 같은 문자열을 계산합니다. 플러그인은 모듈 해석기가 돌려주는 경로와 추출에 넘기는 파일 이름을 이미 같게 맞춥니다(toId). 확장한 컴포넌트는 기반 컴포넌트의 마커도 받습니다.
  • 읽을 수 없는 정의는 지금처럼 런타임 컴포넌트로 감쌉니다(아래 남는 한계).

프로브 (--debug, survey/probe.ts --modules)

$ probe app.tsx            # Card = styled(Base).attrs({ role: 'region' })`color: blue;`
export const Card = ... as: DevupAs = "div" ... className={["c-1-Card c-0-Base color-0-blue--255 padding-0-4px--255", className]...}
                        ... {...__devupProps, ...{ role: "region" }}
export const Wide = ... as: DevupAs = "input", "invalid"를 거름 ... className={["c-1-Wide c-0-Field width-0-100_pc_--255 border-0---255", className]...}
                        style={{ "--border-0-": `1px solid ${(p=>p.invalid?`red`:`gray`)(rest)}`, ...style }}
export const Panel = ... className={["c-1-Panel margin-0-0-_a__s__d_c-0-Base-255", className]...}   // ${Base} { margin: 0 }
export const Small = ... as: DevupAs = "span" ... className={["padding-0-4px--255 color-0-red--255", className]...}   // Base.withComponent('span')
CSS: .border-0---255{border:var(--border-0-)}.color-0-blue--255{color:blue}.color-0-red--255{color:red}.padding-0-4px--255{padding:4px}.width-0-100_pc_--255{width:100%}.margin-0-0-_a__s__d_c-0-Base-255 .c-0-Base{margin:0}
DEPENDENCIES: .../p2/base.ts

$ probe base.ts            # 정의하는 파일
export const Base = ... className={["c-0-Base padding-0-4px--255 color-0-red--255", className]...}   // 선택자가 읽는 c-0-Base와 같은 마커

$ probe css-prop.tsx       # <Base css={{ color: 'blue' }} title="hi" />
<div title="hi" className="padding-0-4px--255 color-0-blue--255 c-0-Base" />
CSS: .color-0-blue--255{color:blue}.padding-0-4px--255{padding:4px}

새로 생기는 오류

새 종류의 오류는 없습니다. 달라지는 점은 하나입니다.

  • import한 styled 컴포넌트의 css prop이 그 컴포넌트의 스타일과 겹치면, 같은 파일 정의와 똑같이 파일:줄:열: cssonoverrides stylesBasesets, which the build orders only for a styled component rendering a tag with no attrs or props read, ...: move these styles intostyled(Base)(...)``로 보고됩니다. 이전에는 순서가 스타일시트에 맡겨져 조용히 넘어갔습니다. 겹치지 않거나 태그로 인라인할 수 있으면(attrs, 읽는 props, spread, `as` 없음) 오류 없이 `css` prop이 이깁니다.

남는 한계

정확히 읽을 수 없는 정의는 건드리지 않고 지금 동작(런타임 컴포넌트로 감싸기)을 유지합니다.

  • 런타임만 아는 base: styled(Link), styled(forwardRef(...)), styled(getThing().div). 정의 모듈의 식별자를 가져오는 쪽에서 가리킬 수 없기 때문입니다.
  • 정의 모듈의 바인딩을 읽는 attrs/클래스/동적 스타일 식(const handler = ...; styled.div.attrs({ onClick: handler }), 모듈 안 함수를 부르는 ${(p) => scaled(p.x)}, 모듈 안 css() mixin 클래스). 식은 가져오는 파일에서 다시 평가되므로, 자신의 매개변수, props, rest, 언어 전역(Math, Number, String ...)만 읽는 식(타입 주석 포함)만 읽습니다.
  • 빌드 오류가 있는 모듈, 런타임 값이 있어 boa 계산이 필요한 모듈: 그 모듈의 정의는 읽지 않지만 마커는 계속 계산합니다(컴포넌트 선택자는 동작).
  • 해석할 수 없는 모듈, import 순환, .css.ts, export const Base = 5처럼 styled 호출이 아닌 export, import type.
  • namespace import 멤버는 styled(UI.Base)와 UI.Base.withComponent(...)만 읽습니다. ${UI.Child} { ... }와 <UI.Base css={...}>는 읽지 않습니다.
  • <Imported foo />처럼 합성 없이 쓰는 호출부에서는 props를 거르지 않습니다(정의 모듈이 자기 컴포넌트 안에서 거릅니다).
  • 마커: 내보내는 styled 컴포넌트는 선택 여부와 관계없이 마커 클래스를 하나씩 더 받습니다. 정의하는 파일은 누가 선택하는지 알 수 없기 때문입니다. 마커는 파일 번호를 쓰므로 원자 클래스 이름처럼 플러그인이 파일 맵을 시드하는 것을 전제로 합니다. 이 때문에 내보내는 styled 컴포넌트가 있던 기존 스냅샷 14개의 클래스 목록이 달라졌습니다(클래스 추가만, 스타일 변화 없음).

검증

  • cargo fmt, cargo +1.99 clippy --workspace --all-targets -- -D warnings, cargo test --workspace 통과
  • 모듈 두 개(해석기 헬퍼)로 합성, 선택자, 재export/namespace, 읽을 수 없는 정의, 순환을 단위 테스트(imported_styled.rs)와 insta 스냅샷으로 확인. 같은 파일 정의와 스타일이 같은지(styled/attrs/withComponent/css prop 10여 가지)도 비교합니다.
  • WASM API와 디스크의 실제 파일로 끝에서 끝까지 검증(packages/next-plugin/src/__tests__/imported-styled.test.ts): 상대 경로, tsconfig paths, 패키지 exports의 include 라이브러리, 의존성 보고, 모듈 변경 반영, 파일 간 마커 일치
  • WASM 재빌드, 루트 bun run build, bun test 5491 통과, 커버리지 100%
  • bun lint: 기존 경고 2개 외 없음

2026-10-08 main 11790bef를 병합하여 업데이트했습니다. 충돌 없이 갱신된 부모 PR의 변경과 main의 변경을 모두 보존했습니다.

2026-10-15 갱신: 갱신된 부모 #730 b28816c285a041f1ac8a59c22a42745a75698ce0을 병합했습니다. 충돌 파일 libs/extractor/src/extractor/extract_style_from_styled.rs, libs/extractor/src/lib.rs, libs/extractor/src/visit.rs, libs/extractor/src/snapshots/extractor__tests__styled_components_of_any_base.snap은 부모의 조건부 스프레드 우선순위·캡처 바인더·실제 타깃·forwardRef·식별 클래스와 이 PR의 모듈 읽기·의존성·export 식별자를 함께 보존해 해결했습니다. 고정 스타일 요약은 원래 정의 모듈의 렌더러와 정확한 클래스/forwarded-rest 객체 슬롯을 유지하므로 캡처를 가져오는 모듈에서 재실행하지 않으며, 캡처가 없는 알려진 native 기반 custom 자손과 attrs 없는 read-bearing 고정 자손도 같은 실제 capability로 합성합니다. 새로 생기는 오류 없음.

수락한 생성 스냅샷은 다음 여섯 개뿐이며 각 .snap.new를 재생성·독립 비교·해시 확인한 뒤 assertion_line 메타데이터만 제외했습니다: extractor__imported_styled__tests__imported_components_compose_like_local_ones, extractor__imported_styled__tests__imported_components_the_build_cannot_read_stay_runtime_components, extractor__imported_styled__tests__re_exports_and_namespaces_reach_the_defining_module, extractor__tests__conditional_composition, extractor__tests__styled_components_of_any_base, extractor__tests__template_interpolations. 첫 번째는 W/V의 export 식별 클래스와 승인된 custom V의 실제 슬롯 쌍, 두 번째는 forwardRef 바깥의 원래 eager 바인딩, 세 번째는 namespace W의 식별 클래스, 나머지는 스타일 합성식 바깥 식별 클래스 및 any-base A/B/C/E의 export 식별자만 반영했습니다. 스타일 원자·타깃·attrs·ref·의존성의 무관한 변경은 없습니다.

검증: 기본 Rust 스택/CARGO_BUILD_JOBS=2, Rust 1.99 all-target Clippy 및 fmt 통과, 일반 모드 cargo test --workspace 3,678개 통과(기존 CSS-prop 가드 343개 및 교차 모듈 실행 76개 유지), 최신 WASM·루트 빌드 통과, Bun 5,922개/실패 0개/커버리지 100%, 실제 공개 WASM+React/SSR의 필터 없는 16개 시나리오 통과, 전체 커밋 훅 통과. LSP는 사용 불가였으며 정상이라고 주장하지 않습니다. Linux 100% 커버리지와 새 head CI 결과는 별도 확인 중입니다.

남는 경계: attrs-bearing 교차 모듈 준비 프로토콜은 추가 구현하지 않았고 기존 동작을 유지합니다. 런타임 스타일러·스타일 헬퍼·레지스트리·callable 전송·새 오류·불투명 fallback을 추가하지 않았습니다. 이 head 752b6141687091f915f5111e4698562adc9d3edc는 코디네이터가 승인한 현재 부모/이전 main 76b1a15 기준의 완료 단위이며 최신 main a6ecc12 포함 완료를 뜻하지 않습니다. 이어서 승인된 a6ecc12 전파 라운드 한 번을 부모 갱신 순서대로 수행합니다.

실제 WASM/React 공개 API 검증 출력(생성 코드·CSS·SSR 결과):

import "@devup-ui/react/devup-ui.css";
import { forwardRef as __devupForwardRef } from "react";
const trace = [];
let selected = true;
export const Base = __devupForwardRef((__devupRefProps, __devupRef) => (({ style, className, as: DevupAs = "article", forwardedAs, ...rest }) => (() => {
	const __devupRecord0 = (0, trace.push("controller"), selected);
	const __devupRecord1 = (0, __devupRecord0 ? (trace.push("leaf"), "red") : undefined);
	return <DevupAs {...rest.__devupForwarded0 ?? (({ "theme": __devupOmit0, "__devupCss0": __devupOmit1, "__devupForwarded0": __devupOmit2, ...__devupDom }) => __devupDom)(rest)} as={forwardedAs} className={[`a--a ${rest.__devupCss0 ?? "a b"}`, className].filter(Boolean).join(" ")} style={style} />;
})())({
	...__devupRefProps,
	ref: __devupRef
}));

import "@devup-ui/react/devup-ui.css";
import { forwardRef as __devupForwardRef } from "react";
import { jsx } from "@devup-ui/react/compat";
import { Base } from "./model";
const Card = __devupForwardRef((__devupRefProps, __devupRef) => (({ style, className, as: DevupAs = undefined, forwardedAs, ...rest }) => <Base {...{
	...{
		...(({ "__devupCss0": __devupOmit0, "__devupForwarded0": __devupOmit1, ...__devupDom }) => __devupDom)(rest),
		forwardedAs
	},
	__devupCss0: rest.__devupCss0 ?? "c b",
	__devupForwarded0: rest.__devupForwarded0 ?? (({ "theme": __devupOmit0, "__devupCss0": __devupOmit1, "__devupForwarded0": __devupOmit2, ...__devupDom }) => __devupDom)(rest)
}} as={DevupAs} className={className} style={style} />)({
	...__devupRefProps,
	ref: __devupRef
}));
const Parent = __devupForwardRef((__devupRefProps, __devupRef) => (({ style, className, as: DevupAs = "section", forwardedAs, ...rest }) => <DevupAs {...(({ "theme": __devupOmit0, ...__devupDom }) => __devupDom)(rest)} as={forwardedAs} className={["d", className].filter(Boolean).join(" ")} style={style} />)({
	...__devupRefProps,
	ref: __devupRef
}));
const App = (ref) => <Parent><Card ref={ref} __devupCss0={"c e"}>child</Card></Parent>;

/*! devup-ui v1.0.83, | Apache License 2.0 | https://devup-ui.com */.c{color:blue}.a{color:green}.b{padding:2px}.e{padding:4px}.d .a--a{outline-color:orange}

import "@devup-ui/react/devup-ui.css";
import { forwardRef as __devupForwardRef } from "react";
const trace = [];
export const Base = __devupForwardRef((__devupRefProps, __devupRef) => (({ style, className, as: DevupAs = "article", forwardedAs, ...rest }) => (() => {
	const __devupRecord0 = (0, trace.push("controller"), order.push("A"), true);
	const __devupRecord1 = (0, __devupRecord0 ? (trace.push("leaf"), "red") : undefined);
	return <DevupAs {...rest.__devupForwarded0 ?? (({ "theme": __devupOmit0, "__devupCss0": __devupOmit1, "__devupForwarded0": __devupOmit2, ...__devupDom }) => __devupDom)(rest)} as={forwardedAs} className={[`a--a ${rest.__devupCss0 ?? "a b"}`, className].filter(Boolean).join(" ")} style={style} />;
})())({
	...__devupRefProps,
	ref: __devupRef
}));

import "@devup-ui/react/devup-ui.css";
import { forwardRef as __devupForwardRef } from "react";
import { forwardRef as makeTarget } from "react";
import { jsx as createElement } from "react/jsx-runtime";
import { Base } from "./model";
const Target = makeTarget((p, ref) => {
	const { theme, customProp, ...ordinary } = p;
	return createElement("aside", {
		...ordinary,
		ref,
		title: theme?.tone,
		"data-custom": customProp
	});
});
export const Mid = __devupForwardRef((__devupRefProps, __devupRef) => (({ style, className, as: DevupAs = Target, forwardedAs, ...rest }) => <Base {...{
	...{
		...(({ "__devupCss0": __devupOmit0, "__devupForwarded0": __devupOmit1, ...__devupDom }) => __devupDom)(rest),
		forwardedAs
	},
	__devupCss0: rest.__devupCss0 ?? "a b",
	__devupForwarded0: rest.__devupForwarded0 ?? (({ "__devupCss0": __devupOmit0, "__devupForwarded0": __devupOmit1, ...__devupDom }) => __devupDom)(rest)
}} as={DevupAs} className={["b--a", className].filter(Boolean).join(" ")} style={style} />)({
	...__devupRefProps,
	ref: __devupRef
}));

import "@devup-ui/react/devup-ui.css";
import { forwardRef as __devupForwardRef } from "react";
import { jsx } from "@devup-ui/react/compat";
import { Mid } from "./middle";
const trace = [];
const Card = __devupForwardRef((__devupRefProps, __devupRef) => (({ style, className, as: DevupAs = undefined, forwardedAs, ...rest }) => (() => {
	const __devupRecord0 = (0, trace.push("controller"), order.push("C"), true);
	const __devupRecord1 = (0, __devupRecord0 ? (trace.push("leaf"), "1px") : undefined);
	return <Mid {...{
		...{
			...(({ "__devupCss0": __devupOmit0, "__devupForwarded0": __devupOmit1, ...__devupDom }) => __devupDom)(rest),
			forwardedAs
		},
		__devupCss0: rest.__devupCss0 ?? "c d b",
		__devupForwarded0: rest.__devupForwarded0 ?? (({ "__devupCss0": __devupOmit0, "__devupForwarded0": __devupOmit1, ...__devupDom }) => __devupDom)(rest)
	}} as={DevupAs} className={className} style={style} />;
})())({
	...__devupRefProps,
	ref: __devupRef
}));
const App = (ref) => <Card ref={ref} theme={{ tone: "caller" }} customProp="custom" style={{ borderColor: "orange" }} __devupCss0={"d c e"}>child</Card>;

/*! devup-ui v1.0.83, | Apache License 2.0 | https://devup-ui.com */.d{color:blue}.a{color:green}.c{margin:2px}.b{padding:2px}.e{padding:5px}

import "@devup-ui/react/devup-ui.css";
import { forwardRef as __devupForwardRef } from "react";
const trace = [];
export const Base = __devupForwardRef((__devupRefProps, __devupRef) => (({ style, className, as: DevupAs = "article", forwardedAs, ...rest }) => (() => {
	const __devupRecord0 = (0, trace.push("controller"), order.push("A"), true);
	const __devupRecord1 = (0, __devupRecord0 ? (trace.push("leaf"), "red") : undefined);
	return <DevupAs {...rest.__devupForwarded0 ?? (({ "theme": __devupOmit0, "__devupCss0": __devupOmit1, "__devupForwarded0": __devupOmit2, ...__devupDom }) => __devupDom)(rest)} as={forwardedAs} className={[`a--a ${rest.__devupCss0 ?? "a"}`, className].filter(Boolean).join(" ")} style={style} />;
})())({
	...__devupRefProps,
	ref: __devupRef
}));

import "@devup-ui/react/devup-ui.css";
import { forwardRef as __devupForwardRef } from "react";
import { forwardRef as makeTarget } from "react";
import { jsx as createElement } from "react/jsx-runtime";
import { Base } from "./model";
const trace = [];
const Target = makeTarget((p, ref) => createElement("aside", {
	...p,
	ref
}));
const Read = __devupForwardRef((__devupRefProps, __devupRef) => (({ style, className, as: DevupAs = undefined, forwardedAs, ...rest }) => (() => {
	const __devupRecord0 = (0, trace.push("controller"), order.push("B"), true);
	const __devupRecord1 = (0, __devupRecord0 ? (trace.push("leaf"), "red") : undefined);
	return <Base {...{
		...{
			...(({ "__devupCss0": __devupOmit0, "__devupForwarded0": __devupOmit1, ...__devupDom }) => __devupDom)(rest),
			forwardedAs
		},
		__devupCss0: rest.__devupCss0 ?? "a b",
		__devupForwarded0: rest.__devupForwarded0 ?? (({ "denied": __devupOmit0, "$tone": __devupOmit1, "blocked": __devupOmit2, "__devupCss0": __devupOmit3, "__devupForwarded0": __devupOmit4, ...__devupDom }) => __devupDom)(rest)
	}} as={DevupAs} className={className} style={style} />;
})())({
	...__devupRefProps,
	ref: __devupRef
}));
export const Mid = __devupForwardRef((__devupRefProps, __devupRef) => (({ style, className, as: DevupAs = Target, forwardedAs, ...rest }) => (() => {
	const __devupRecord2 = (0, trace.push("controller"), order.push("B"), true);
	const __devupRecord3 = (0, __devupRecord2 ? (trace.push("leaf"), "red") : undefined);
	return <Base {...{
		...{
			...(({ "__devupCss0": __devupOmit0, "__devupForwarded0": __devupOmit1, ...__devupDom }) => __devupDom)(rest),
			forwardedAs
		},
		__devupCss0: rest.__devupCss0 ?? "a b",
		__devupForwarded0: rest.__devupForwarded0 ?? (({ "denied": __devupOmit0, "$tone": __devupOmit1, "blocked": __devupOmit2, "__devupCss0": __devupOmit3, "__devupForwarded0": __devupOmit4, ...__devupDom }) => __devupDom)(rest)
	}} as={DevupAs} className={["b--a", className].filter(Boolean).join(" ")} style={style} />;
})())({
	...__devupRefProps,
	ref: __devupRef
}));

import "@devup-ui/react/devup-ui.css";
import { forwardRef as __devupForwardRef } from "react";
import { Mid } from "./middle";
const trace = [];
export const Card = __devupForwardRef((__devupRefProps, __devupRef) => ((__devupProps) => (({ style, className, as: DevupAs = undefined, forwardedAs, ...rest }) => <Mid {...{
	...{
		...(({ "__devupCss0": __devupOmit0, "__devupForwarded0": __devupOmit1, ...__devupDom }) => __devupDom)(rest),
		forwardedAs
	},
	__devupCss0: rest.__devupCss0 ?? "c b",
	__devupForwarded0: rest.__devupForwarded0 ?? (({ "denied": __devupOmit0, "$tone": __devupOmit1, "blocked": __devupOmit2, "__devupCss0": __devupOmit3, "__devupForwarded0": __devupOmit4, ...__devupDom }) => __devupDom)(rest)
}} as={DevupAs} className={["c--a", className].filter(Boolean).join(" ")} style={style} />)(((__devupContext) => ({
	...__devupContext,
	className: [__devupContext.className, __devupProps.className].filter(Boolean).join(" ") || undefined
}))(((__devupContext) => ((__devupAttrs) => ({
	...__devupContext,
	...__devupAttrs,
	className: [__devupContext.className, __devupAttrs.className].filter(Boolean).join(" ") || undefined,
	style: {
		...__devupContext.style,
		...__devupAttrs.style
	}
}))({
	...{},
	...((p) => (trace.push([p.denied, p.$tone]), order.push("attrs"), {
		denied: p.denied + "-outer",
		$tone: p.$tone + "-outer"
	}))(__devupContext)
}))({
	...__devupProps,
	className: undefined
}))))({
	...__devupRefProps,
	ref: __devupRef
}));
const App = (ref) => <Card denied="caller" $tone="transient" ref={ref}>child</Card>;

/*! devup-ui v1.0.83, | Apache License 2.0 | https://devup-ui.com */.c{color:blue}.a{color:green}.b{padding:2px}
[
  {
    "scenario": "selector-and-css-prop",
    "captured": false,
    "modelFirst": false,
    "html": "<section class=\"d\"><article class=\"c e a--a\">child</article></section>"
  },
  {
    "scenario": "selector-and-css-prop",
    "captured": false,
    "modelFirst": true,
    "html": "<section class=\"d\"><article class=\"c e a--a\">child</article></section>"
  },
  {
    "scenario": "selector-and-css-prop",
    "captured": true,
    "modelFirst": false,
    "html": "<section class=\"d\"><article class=\"a--a c e\">child</article></section>"
  },
  {
    "scenario": "selector-and-css-prop",
    "captured": true,
    "modelFirst": true,
    "html": "<section class=\"d\"><article class=\"a--a c e\">child</article></section>"
  },
  {
    "scenario": "three-module-retarget",
    "captured": false,
    "modelFirst": false,
    "retarget": "custom",
    "html": "<aside class=\"b--a a--a d c e\" style=\"border-color:orange\" title=\"caller\" data-custom=\"custom\">child</aside>"
  },
  {
    "scenario": "three-module-retarget",
    "captured": false,
    "modelFirst": false,
    "retarget": "native",
    "html": "<section class=\"b--a a--a d c e\" style=\"border-color:orange\">child</section>"
  },
  {
    "scenario": "three-module-retarget",
    "captured": false,
    "modelFirst": true,
    "retarget": "custom",
    "html": "<aside class=\"b--a a--a d c e\" style=\"border-color:orange\" title=\"caller\" data-custom=\"custom\">child</aside>"
  },
  {
    "scenario": "three-module-retarget",
    "captured": false,
    "modelFirst": true,
    "retarget": "native",
    "html": "<section class=\"b--a a--a d c e\" style=\"border-color:orange\">child</section>"
  },
  {
    "scenario": "three-module-retarget",
    "captured": true,
    "modelFirst": false,
    "retarget": "custom",
    "html": "<aside class=\"a--a d c e b--a\" style=\"border-color:orange\" title=\"caller\" data-custom=\"custom\">child</aside>"
  },
  {
    "scenario": "three-module-retarget",
    "captured": true,
    "modelFirst": false,
    "retarget": "native",
    "html": "<section class=\"a--a d c e b--a\" style=\"border-color:orange\">child</section>"
  },
  {
    "scenario": "three-module-retarget",
    "captured": true,
    "modelFirst": true,
    "retarget": "custom",
    "html": "<aside class=\"a--a d c e b--a\" style=\"border-color:orange\" title=\"caller\" data-custom=\"custom\">child</aside>"
  },
  {
    "scenario": "three-module-retarget",
    "captured": true,
    "modelFirst": true,
    "retarget": "native",
    "html": "<section class=\"a--a d c e b--a\" style=\"border-color:orange\">child</section>"
  },
  {
    "scenario": "read-bearing-fixed-descendant",
    "custom": false,
    "attrs": false,
    "html": "<section class=\"a--a c b b--a c--a\">child</section>"
  },
  {
    "scenario": "read-bearing-fixed-descendant",
    "custom": false,
    "attrs": true,
    "html": "<section class=\"a--a c b b--a c--a\">child</section>"
  },
  {
    "scenario": "read-bearing-fixed-descendant",
    "custom": true,
    "attrs": false,
    "html": "<aside class=\"a--a c b b--a c--a\">child</aside>"
  },
  {
    "scenario": "read-bearing-fixed-descendant",
    "custom": true,
    "attrs": true,
    "html": "<aside class=\"a--a c b b--a c--a\">child</aside>"
  }
]

owjs3901 and others added 19 commits October 1, 2026 21:16
…rations

css(a, b) composing classes whose styles the build knows, bound to css() in the file or exported by another module, merges their atoms per property, selector, breakpoint and layer, conditions included, instead of joining classes whose winner the stylesheet order picked. vanilla-extract style([...]) passes each composed style as its own argument, keeping a style composed again later.

Refs #688

Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent)

Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
Refs #688

Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent)

Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
Refs #688

Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent)

Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
Refs #688

Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent)

Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
…asurable

Refs #688

Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent)

Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
…JSX spreads win

Refs #688

Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent)

Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
…led order and JSX element className

Refs #688

Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent)

Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
Refs #689

Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent)

Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
…uate shouldForwardProp at build time

Refs #689

Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent)

Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
…ring

Refs #689

Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent)

Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
Refs #691

Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent)

Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
Refs #690

Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent)

Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
… and conditional styles

Refs #690

Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent)

Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
…h Emotion

Refs #690

Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent)

Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
Refs #690

Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent)

Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
…ed parameters

Refs #690

Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent)

Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
Refs #690

Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent)

Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
Refs #688

Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent)

Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
…e runtime

Refs #688

Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent)

Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
@github-actions

github-actions Bot commented Oct 3, 2026 •

Copy link
Copy Markdown
Contributor

Changepacks

@devup-ui/wasm@1.0.83 → 1.0.84 - bindings/devup-ui-wasm/package.json

Patch

  • css(a, b) composing classes whose styles the build knows (a const bound to css() in the file, or a css() result another module exports with a rule object every value of which is known) merges their styles: a later part's declaration replaces an earlier one's for the same property, selector, breakpoint and layer, also under conditions (css(base, cond && danger)) and for ||/?? parts, where the classes used to be joined and the stylesheet order picked the winner. vanilla-extract style([a, b]) passes each composed style as its own argument, so the later one wins, and a style composed again later (style([a, b, a])) is kept. Classes the build does not know (strings, props, CSS Modules) are kept as they are
  • styled(Base) extending a styled component the file binds to a const renders Base's tag directly with Base's styles composed under its own, so the extension's declarations replace Base's for the same property, selector, breakpoint and layer instead of losing to them by stylesheet order; Base's attrs apply before the extension's. attrs merge as styled-components merges them: className is joined with the caller's, style is merged and other props replace earlier ones. On an element, a className or style spread after the explicit prop now wins, as React merges props in the order they are written
  • Emotion's now compiles at build time with no runtime: the element becomes what its child function ({ css, cx, theme }) => ... renders, each css and cx call becomes the classes it composes (later styles replace earlier ones; css reads strings as CSS text and its tagged templates split around mixins; cx keeps unknown classes, reads { name: condition } objects as conditional classes and composes nested css and cx calls), and theme.a.b in their values becomes var(--a-b). Numbers in css rules are px lengths, as Emotion reads them, and top-level constants are inlined. New build errors, each at file:line:col: a without exactly one child function taking { css, cx, theme } that gives what it renders at once (attributes, other children, rest or default parameters, async or generator functions, several statements); reading the theme other than as theme.a.b in a css value; using css or cx other than by calling them; a cx object with a spread, getter or method; parts css and cx cannot compose (runtime calls, spreads, a condition choosing between styles and classes). @devup-ui/react/compat exports ClassNames with the ClassNamesContent and ClassNamesArg types, and the @emotion/react declarations include them
  • Emotion and styled-components component selectors now compile at build time: a styled component the file defines that another style selects (${Child} { ... } in CSS text, [Child] or [&:hover ${Child}] as a rule key) gets a short marker class, which only such components get, and the selector reads it as .marker; a component extending it, or an element inlining it for its css prop, keeps the marker. Selectors written without & now nest under the component as stylis nests them (ul { ... } is & ul, a selector list nests each selector, :hover applies to the component itself) instead of becoming global rules, and rule-object keys starting with ., #, [, *, >, + or ~ are read as nested selectors instead of properties
  • Emotion's css prop compiles at build time while @emotion/react is aliased: on tags and Devup UI components always, and on every element once the file imports @emotion/react or @emotion/styled or names @emotion/react in a @jsxImportSource pragma; jsx, jsxs and jsxDEV from @emotion/react/jsx-runtime (or jsx-dev-runtime) and jsx from @emotion/react compile it too, so libraries built with Emotion's JSX runtime do as well. The prop becomes the element's className, with CSS variables in its style for values only the runtime gives: arrays and conditions compose with a later part replacing what an earlier one sets, css() classes the file knows compose by their styles, strings and templates are CSS text, css`` mixins split the text around them, a function of the theme reads theme.a.b as var(--a-b), unitless numbers are px as in Emotion (constants included), and a className holding known css() classes overrides the prop as Emotion's registered classes do. A styled component the file defines renders its tag in the element's place when the prop overrides its styles and it renders a tag with no attrs or props read and the element has no spread, as or forwardedAs. Emotion's JSX runtime imports become react/jsx-runtime, the pragma names react, and jsx comes from @devup-ui/react/compat (React's createElement); @devup-ui/react/compat/css-prop types the prop on React.Attributes. New build errors, each with file:line:column and the code: a css prop part the build cannot read (a call, an element), a style object declared inside a function or with let, a binding only running the module gives or code changes, a theme function that does more than return rules or reads the theme other than as theme.a.b in a value, an interpolation CSS text cannot place or a mixin inside a nested rule, and a css prop overriding a styled component's styles where its tag cannot be rendered in place. Composing css() with a part that reads a known binding (such as a keyframes name) now reads its value
  • A project whose tsconfig.json (or jsconfig.json) builds JSX with Emotion (compilerOptions.jsxImportSource of @emotion/react, through extends and project references too) now compiles the css prop on every element of every file, and its .tsx and .jsx files are built with React's JSX runtime through a /** @jsxImportSource react */ pragma, which a file's own JSX pragma overrides, so the bundler no longer imports Emotion's runtime. The plugins read the setting into a new @emotion/react/jsx-runtime alias (importAliases can turn it off with false, and it is left out when @emotion/react is not aliased); @devup-ui/react/compat/emotion-jsx-runtime declares Emotion's JSX runtimes as React's so the project type-checks without Emotion installed. plugin-utils exports readJsxImportSource, and mergeImportAliases takes the JSX import source
  • style-order-range only checks styleOrder where the build reads it: a prop of a Devup UI component and a top-level key of a style object passed to css/globalCss/keyframes. A styleOrder key in nested data, in a prop value such as an element passed as a prop, or in a call of a function sharing a name with an Object.prototype member is no longer reported. The array, typography and media rules already skip non-style data, and css-utils-literal-only accepts a css()/keyframes() result held in a const inside a function. No new build errors.
  • A styled component another module defines now composes at build time exactly as one the file defines itself: styled(ImportedBase)(...), styled(ImportedBase).attrs(...), ImportedBase.withComponent(...) and the Emotion css prop on ImportedBase render the base's tag with the base's styles under their own (the later declaration wins per property, selector, breakpoint and layer), merge attrs in order and filter props by what the styles read and shouldForwardProp. The build reads the other module through the same module resolution imported constants use (relative paths, tsconfig paths, package exports, include libraries) and reports it as a dependency, so a change to it rebuilds the importing file. A definition the build cannot read exactly (a base only the runtime gives, an attrs or style expression reading a binding of the defining module, a module with a build error, an unresolvable module, an import cycle) stays a runtime component that wraps, as before. Every exported styled component now carries a marker class computed from its file and its export name alone, so ${ImportedChild} { ... } in CSS text and [ImportedChild] as a rule key select it from another file; the marker replaces the registry-ordered one, which two files could not compute alike. No new build errors: the css prop on an imported styled component now reports the same override error a local one does when its styles overlap the component's
  • Styled components the build generates are wrapped in React's forwardRef, so a ref passed to them reaches the element they render on React 18 as well as React 19; the file imports forwardRef from react when it defines one
  • Styled components no longer pass every prop to the tag they render: $ props, theme and the props their style functions or attrs read are kept away from a tag unless it takes them as attributes, and shouldForwardProp (Emotion options or styled-components withConfig) is evaluated at build time. A shouldForwardProp the build cannot evaluate is a build error naming the file, line and code, with the forms it accepts. An element using a styled component the file defines drops props the component neither reads nor passes on; spread props are passed as written
  • Styled components render what their as prop names, defaulting to the tag or component they were defined with, and pass forwardedAs on as as, as styled-components and Emotion do; as used to reach the rendered tag as an attribute. Component.withComponent(target) on a styled component the file binds to a const builds a component rendering the same styles and attrs as target (a tag name or a component JSX can name), where it used to call a method the generated function does not have and throw
  • Tailwind classes in a className: each class compiles on its own and every class Tailwind does not define (custom, plugin and analytics classes) stays as written, where any recognized class used to rebuild the whole className without them and could rewrite part of another class; a class touching a template interpolation (icon-${name}) is left as written, and template classNames no longer get spaces inserted around interpolations. A class whose variant is not understood stays as written instead of applying unconditionally; variants follow Tailwind v4: stacked variants compose (hover:focus: matches the element itself), hover is guarded by @media (hover: hover), group-/peer- use the group/peer marker classes (and group-hover/name), and data-, aria-, has-, nth-, , **, supports-[…] and [&…]/[@media …] variants compile. Utilities emit all their declarations (size-, rounded-t-, truncate, sr-only, not-sr-only, text-sm with its line height, text-sm/6, leading-), translate/rotate/scale/skew compose through Tailwind's individual properties and registered variables (@Property) with negative values kept negative, and arbitrary values follow Tailwind's grammar: spaces for underscores except in url() and var() names, _ for an underscore, spaces around math operators, type hints, [property:value] and (--variable) shorthands. Words that only share a utility's prefix (select-wrapper, order-summary, cursor-foo) are no longer compiled

@devup-ui/bun-plugin@1.0.22 → 1.0.23 - packages/bun-plugin/package.json

Patch

  • Bun plugin works with Bun.build: DevupUI() (from @devup-ui/bun-plugin/register) serves the generated stylesheet to the bundler's CSS loader once every other module is loaded, so the build emits a CSS output with the styles of the whole bundle instead of an empty module; class names are short there and readable under the runtime (debug option). Files importing the packages Devup UI takes the place of (@emotion/react, @emotion/styled, styled-components, @vanilla-extract/css), @stylexjs/stylex, or a subpath or re-export of these or @devup-ui/react, are compiled instead of skipped
  • A project whose tsconfig.json (or jsconfig.json) builds JSX with Emotion (compilerOptions.jsxImportSource of @emotion/react, through extends and project references too) now compiles the css prop on every element of every file, and its .tsx and .jsx files are built with React's JSX runtime through a /** @jsxImportSource react */ pragma, which a file's own JSX pragma overrides, so the bundler no longer imports Emotion's runtime. The plugins read the setting into a new @emotion/react/jsx-runtime alias (importAliases can turn it off with false, and it is left out when @emotion/react is not aliased); @devup-ui/react/compat/emotion-jsx-runtime declares Emotion's JSX runtimes as React's so the project type-checks without Emotion installed. plugin-utils exports readJsxImportSource, and mergeImportAliases takes the JSX import source

@devup-ui/components@0.1.60 → 0.1.61 - packages/components/package.json

Patch

  • Auto-update: depends on '@devup-ui/react' via a local workspace dependency

@devup-ui/eslint-plugin@1.0.22 → 1.0.23 - packages/eslint-plugin/package.json

Patch

  • style-order-range only checks styleOrder where the build reads it: a prop of a Devup UI component and a top-level key of a style object passed to css/globalCss/keyframes. A styleOrder key in nested data, in a prop value such as an element passed as a prop, or in a call of a function sharing a name with an Object.prototype member is no longer reported. The array, typography and media rules already skip non-style data, and css-utils-literal-only accepts a css()/keyframes() result held in a const inside a function. No new build errors.

@devup-ui/next-plugin@1.0.90 → 1.0.91 - packages/next-plugin/package.json

Patch

  • A project whose tsconfig.json (or jsconfig.json) builds JSX with Emotion (compilerOptions.jsxImportSource of @emotion/react, through extends and project references too) now compiles the css prop on every element of every file, and its .tsx and .jsx files are built with React's JSX runtime through a /** @jsxImportSource react */ pragma, which a file's own JSX pragma overrides, so the bundler no longer imports Emotion's runtime. The plugins read the setting into a new @emotion/react/jsx-runtime alias (importAliases can turn it off with false, and it is left out when @emotion/react is not aliased); @devup-ui/react/compat/emotion-jsx-runtime declares Emotion's JSX runtimes as React's so the project type-checks without Emotion installed. plugin-utils exports readJsxImportSource, and mergeImportAliases takes the JSX import source

@devup-ui/plugin-utils@1.0.17 → 1.0.18 - packages/plugin-utils/package.json

Patch

  • Webpack and Rsbuild builds hold every style in their stylesheets: a stylesheet module is built on its first import, so styles extracted later (the global styles of files webpack or Rsbuild reached late, often outside src) were missing from the output. The files the entries reach under src are now extracted before the build, the shared base on disk is kept current, and when a stylesheet still changed during the build it is compiled once more, writing only the complete result. Rsbuild serves each stylesheet from the current sheet instead of a module-wide string kept only when it grew, which left edits that shortened the CSS and later builds in the same process stale. plugin-utils adds computeReachableFiles
  • A project whose tsconfig.json (or jsconfig.json) builds JSX with Emotion (compilerOptions.jsxImportSource of @emotion/react, through extends and project references too) now compiles the css prop on every element of every file, and its .tsx and .jsx files are built with React's JSX runtime through a /** @jsxImportSource react */ pragma, which a file's own JSX pragma overrides, so the bundler no longer imports Emotion's runtime. The plugins read the setting into a new @emotion/react/jsx-runtime alias (importAliases can turn it off with false, and it is left out when @emotion/react is not aliased); @devup-ui/react/compat/emotion-jsx-runtime declares Emotion's JSX runtimes as React's so the project type-checks without Emotion installed. plugin-utils exports readJsxImportSource, and mergeImportAliases takes the JSX import source

@devup-ui/react@1.0.44 → 1.0.45 - packages/react/package.json

Patch

  • Emotion's now compiles at build time with no runtime: the element becomes what its child function ({ css, cx, theme }) => ... renders, each css and cx call becomes the classes it composes (later styles replace earlier ones; css reads strings as CSS text and its tagged templates split around mixins; cx keeps unknown classes, reads { name: condition } objects as conditional classes and composes nested css and cx calls), and theme.a.b in their values becomes var(--a-b). Numbers in css rules are px lengths, as Emotion reads them, and top-level constants are inlined. New build errors, each at file:line:col: a without exactly one child function taking { css, cx, theme } that gives what it renders at once (attributes, other children, rest or default parameters, async or generator functions, several statements); reading the theme other than as theme.a.b in a css value; using css or cx other than by calling them; a cx object with a spread, getter or method; parts css and cx cannot compose (runtime calls, spreads, a condition choosing between styles and classes). @devup-ui/react/compat exports ClassNames with the ClassNamesContent and ClassNamesArg types, and the @emotion/react declarations include them
  • Emotion's css prop compiles at build time while @emotion/react is aliased: on tags and Devup UI components always, and on every element once the file imports @emotion/react or @emotion/styled or names @emotion/react in a @jsxImportSource pragma; jsx, jsxs and jsxDEV from @emotion/react/jsx-runtime (or jsx-dev-runtime) and jsx from @emotion/react compile it too, so libraries built with Emotion's JSX runtime do as well. The prop becomes the element's className, with CSS variables in its style for values only the runtime gives: arrays and conditions compose with a later part replacing what an earlier one sets, css() classes the file knows compose by their styles, strings and templates are CSS text, css`` mixins split the text around them, a function of the theme reads theme.a.b as var(--a-b), unitless numbers are px as in Emotion (constants included), and a className holding known css() classes overrides the prop as Emotion's registered classes do. A styled component the file defines renders its tag in the element's place when the prop overrides its styles and it renders a tag with no attrs or props read and the element has no spread, as or forwardedAs. Emotion's JSX runtime imports become react/jsx-runtime, the pragma names react, and jsx comes from @devup-ui/react/compat (React's createElement); @devup-ui/react/compat/css-prop types the prop on React.Attributes. New build errors, each with file:line:column and the code: a css prop part the build cannot read (a call, an element), a style object declared inside a function or with let, a binding only running the module gives or code changes, a theme function that does more than return rules or reads the theme other than as theme.a.b in a value, an interpolation CSS text cannot place or a mixin inside a nested rule, and a css prop overriding a styled component's styles where its tag cannot be rendered in place. Composing css() with a part that reads a known binding (such as a keyframes name) now reads its value
  • A project whose tsconfig.json (or jsconfig.json) builds JSX with Emotion (compilerOptions.jsxImportSource of @emotion/react, through extends and project references too) now compiles the css prop on every element of every file, and its .tsx and .jsx files are built with React's JSX runtime through a /** @jsxImportSource react */ pragma, which a file's own JSX pragma overrides, so the bundler no longer imports Emotion's runtime. The plugins read the setting into a new @emotion/react/jsx-runtime alias (importAliases can turn it off with false, and it is left out when @emotion/react is not aliased); @devup-ui/react/compat/emotion-jsx-runtime declares Emotion's JSX runtimes as React's so the project type-checks without Emotion installed. plugin-utils exports readJsxImportSource, and mergeImportAliases takes the JSX import source

@devup-ui/reset-css@1.0.31 → 1.0.32 - packages/reset-css/package.json

Patch

  • Auto-update: depends on '@devup-ui/react' via a local workspace dependency

@devup-ui/rsbuild-plugin@1.0.67 → 1.0.68 - packages/rsbuild-plugin/package.json

Patch

  • Webpack and Rsbuild builds hold every style in their stylesheets: a stylesheet module is built on its first import, so styles extracted later (the global styles of files webpack or Rsbuild reached late, often outside src) were missing from the output. The files the entries reach under src are now extracted before the build, the shared base on disk is kept current, and when a stylesheet still changed during the build it is compiled once more, writing only the complete result. Rsbuild serves each stylesheet from the current sheet instead of a module-wide string kept only when it grew, which left edits that shortened the CSS and later builds in the same process stale. plugin-utils adds computeReachableFiles
  • A project whose tsconfig.json (or jsconfig.json) builds JSX with Emotion (compilerOptions.jsxImportSource of @emotion/react, through extends and project references too) now compiles the css prop on every element of every file, and its .tsx and .jsx files are built with React's JSX runtime through a /** @jsxImportSource react */ pragma, which a file's own JSX pragma overrides, so the bundler no longer imports Emotion's runtime. The plugins read the setting into a new @emotion/react/jsx-runtime alias (importAliases can turn it off with false, and it is left out when @emotion/react is not aliased); @devup-ui/react/compat/emotion-jsx-runtime declares Emotion's JSX runtimes as React's so the project type-checks without Emotion installed. plugin-utils exports readJsxImportSource, and mergeImportAliases takes the JSX import source

@devup-ui/vite-plugin@1.0.73 → 1.0.74 - packages/vite-plugin/package.json

Patch

  • A project whose tsconfig.json (or jsconfig.json) builds JSX with Emotion (compilerOptions.jsxImportSource of @emotion/react, through extends and project references too) now compiles the css prop on every element of every file, and its .tsx and .jsx files are built with React's JSX runtime through a /** @jsxImportSource react */ pragma, which a file's own JSX pragma overrides, so the bundler no longer imports Emotion's runtime. The plugins read the setting into a new @emotion/react/jsx-runtime alias (importAliases can turn it off with false, and it is left out when @emotion/react is not aliased); @devup-ui/react/compat/emotion-jsx-runtime declares Emotion's JSX runtimes as React's so the project type-checks without Emotion installed. plugin-utils exports readJsxImportSource, and mergeImportAliases takes the JSX import source

@devup-ui/webpack-plugin@1.0.71 → 1.0.72 - packages/webpack-plugin/package.json

Patch

  • Webpack and Rsbuild builds hold every style in their stylesheets: a stylesheet module is built on its first import, so styles extracted later (the global styles of files webpack or Rsbuild reached late, often outside src) were missing from the output. The files the entries reach under src are now extracted before the build, the shared base on disk is kept current, and when a stylesheet still changed during the build it is compiled once more, writing only the complete result. Rsbuild serves each stylesheet from the current sheet instead of a module-wide string kept only when it grew, which left edits that shortened the CSS and later builds in the same process stale. plugin-utils adds computeReachableFiles
  • A project whose tsconfig.json (or jsconfig.json) builds JSX with Emotion (compilerOptions.jsxImportSource of @emotion/react, through extends and project references too) now compiles the css prop on every element of every file, and its .tsx and .jsx files are built with React's JSX runtime through a /** @jsxImportSource react */ pragma, which a file's own JSX pragma overrides, so the bundler no longer imports Emotion's runtime. The plugins read the setting into a new @emotion/react/jsx-runtime alias (importAliases can turn it off with false, and it is left out when @emotion/react is not aliased); @devup-ui/react/compat/emotion-jsx-runtime declares Emotion's JSX runtimes as React's so the project type-checks without Emotion installed. plugin-utils exports readJsxImportSource, and mergeImportAliases takes the JSX import source

@codecov

codecov Bot commented Oct 3, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

Files with missing lines Coverage Δ
libs/css/src/lib.rs 100.00% <100.00%> (ø)
libs/extractor/src/build_time_values.rs 100.00% <100.00%> (ø)
libs/extractor/src/composition.rs 100.00% <100.00%> (ø)
libs/extractor/src/css_prop.rs 100.00% <100.00%> (ø)
libs/extractor/src/css_utils.rs 100.00% <100.00%> (ø)
...tor/src/extractor/extract_style_from_expression.rs 100.00% <ø> (ø)
...tractor/src/extractor/extract_style_from_styled.rs 100.00% <100.00%> (ø)
libs/extractor/src/import_alias_visit.rs 100.00% <100.00%> (ø)
libs/extractor/src/imported_constants.rs 100.00% <100.00%> (ø)
libs/extractor/src/imported_styled.rs 100.00% <100.00%> (ø)
... and 16 more
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

owjs3901 and others added 6 commits October 8, 2026 15:11
No conflicted files; preserve composition changes and main ESLint checks.
No conflicted files; combine updated parent and PR changes.
No conflicted files; combine updated parent and PR changes.
Conflicted file: libs/extractor/src/lib.rs. Retain both composition helper and regression tests from PR 706 and Tailwind per-class regression tests from main 11790be; take rewritten main Tailwind implementation with Rust 1.99 assertions. bun.lock regenerated by bun install; no snapshots were hand-merged.

Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent)

Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
Merge updated parent PR 706 (30247ba), containing main 11790be. Conflicted file: libs/extractor/src/prop_modify_utils.rs. Preserve PR 707's last-written className/style spread semantics and no spread_props parameter with capacity 2, together with main's per-class Tailwind compiler. No snapshots were hand-merged.

Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent)

Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
No conflicted files; retain PR changes and merge updated parent #707, which contains main 11790be.
owjs3901 and others added 7 commits October 8, 2026 15:59
No conflicted files; retain PR changes and merge updated parent #710, which contains main 11790be.
No conflicted files; retain PR changes and merge updated parent #711, which contains main 11790be.
No conflicted files; retain PR changes and merge updated parent #722, which contains main 11790be.
Merge updated parent PR 727 (12328b9), containing main 11790be. Conflicted file: packages/bun-plugin/src/plugin.ts. Preserve PR 728's readJsxImportSource alias discovery and main PR 703's compiledPackages scanner, Bun.build stylesheet deferral, runtime writes and debug policy; keep main PR 704 plugin CSS behavior. WASM/root builds and real Bun stylesheet regression passed; no snapshots were hand-merged.

Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent)

Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
No conflicted files; retain PR changes and merge updated parent #728, which contains main 11790be.
No conflicted files; retain PR changes and merge updated parent #729, which contains main 11790be.
No conflicted files; retain PR changes and merge updated parent #730, which contains main 11790be.
owjs3901 added a commit that referenced this pull request Oct 8, 2026
No conflicted files; retain PR changes and merge updated parent #736, which contains main 11790be.
owjs3901 and others added 13 commits October 14, 2026 17:45
Refs #688 #707 #776

Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent)

Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
Refs #688 #707 #776 #702 #780

Includes exact patches 7960b48 and b71ca4e

Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent)

Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
Refs #688 #707 #777 #716 #743

Preserve inherited captures and actual TS targets; cover dynamic bases and assertion guards

Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent)

Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
Refs #688 #707

Keep the visitor unchanged at module scope so coverage analysis does not invent an uncovered nested declaration

Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent)

Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
Refs #688 #710 #707

Retain inherited captures for withComponent and as in JSX and TypeScript renderers

Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent)

Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
Refs #689

Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent)

Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
Refs #691

Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent)

Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
Refs #691 #695

Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent)

Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
Refs #690

Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent)

Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
Refs #690

Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent)

Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
Refs #690

Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent)

Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
…sition

Refs #690

Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent)

Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
Refs #695 #688 #689

Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent)

Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant