@wix/origami-transforms
v0.1.76
Published
Babel and PostCSS checks and transforms for Wix origami page files.
Maintainers
Keywords
Readme
@wix/origami-transforms
Babel and PostCSS checks and transforms for Wix origami page files.
Exports createTransformPipeline, createTransformRegistry, createContextFactory,
relativeToSite, LayoutError, the Babel/PostCSS adapters and runners, jsxPlugins
and cssPlugins. The pipeline accepts the existing { layout, jsxPlugins, cssPlugins }
options, exposes babelOptionsFor, postcssPlugin, postcssParser and nameBuildError, and takes serve or build
through setCommand. It has no Vite dependency.
JavaScript source lives in src/; pnpm build emits declarations to dist/.
Run pnpm test and pnpm lint for the transform suite and lint checks.
Transform specs and CSS fixtures live only in this package. test/packed.spec.js loads the
packed package outside the monorepo.
pnpm test:browser checks the compiled CSS in Chromium: SPX scaling (test/spx.browser.mjs) and the
maintained InternalContainer with system-component CSS (test/semanticContainer.browser.mjs: responsive SPX,
grid/flex, max widths and alignment, overflow, visibility, focus and pointer events, HMR and a production build).
CI doesn't run it. Install Playwright Chromium (pnpm exec playwright install chromium) or set
CHROME_CHANNEL=chrome to use the installed Chrome. Consumers import the shared API
and types from @wix/origami-transforms; there are no public subpath exports.
The host layout only needs a root string.
