Skip to content

v0.1.0

Compare
Choose a tag to compare
@jonambas jonambas released this 09 Apr 13:48
· 69 commits to main since this release

What's Changed

Adds a transformer to remove the plugin's JS runtime using @pandabox/unplugin. Your bundler's config will need to be modified to achieve this.

Example Next.js config:

import unplugin from '@pandabox/unplugin';
import { transform } from 'panda-plugin-ct';

// Your token object
// This should be the same as the object you supplied to the Panda plugin
const tokens = {};

/** @type {import('next').NextConfig} */
const nextConfig = {
  reactStrictMode: true,
  webpack: (config) => {
    config.plugins.push(
      unplugin.webpack({
        transform: transform(tokens),
        optimizeJs: true, // Optional, this will replace other Panda runtime functions (css, cva, etc)
      }),
    );
    return config;
  },
};

export default nextConfig;
  • fix(codegen): match file extensions by @jonambas in #19
  • feat(transformer): add JS runtime transformer for @pandabox/unplugin by @jonambas in #21

Full Changelog: v0.0.7...v0.1.0