diff --git a/README.md b/README.md index 1a17f2f..56ce7aa 100644 --- a/README.md +++ b/README.md @@ -128,7 +128,6 @@ const nextConfig = { config.plugins.push( unplugin.webpack({ transform: transform(tokens), - optimizeJs: true, // Optional, this will replace other Panda runtime functions (css, cva, etc) }), ); return config; diff --git a/src/__tests__/transformer.test.ts b/src/__tests__/transformer.test.ts index 1ef5cc2..ff09558 100644 --- a/src/__tests__/transformer.test.ts +++ b/src/__tests__/transformer.test.ts @@ -9,7 +9,6 @@ describe('transform', () => { it('replaces ct', () => { expect( transform(tokens)({ - configure: () => {}, filePath: 'test.tsx', content: ` import { css, ct, cva } from '@/styled-system/css'; @@ -56,7 +55,6 @@ describe('transform', () => { it('skips without imports, expressions, content', () => { expect( transform(tokens)({ - configure: () => {}, filePath: 'test.tsx', content: `
`, }), @@ -64,7 +62,6 @@ describe('transform', () => { expect( transform(tokens)({ - configure: () => {}, filePath: 'test.tsx', content: `import { ct } from '@/styled-system/css`, }), @@ -72,7 +69,6 @@ describe('transform', () => { expect( transform(tokens)({ - configure: () => {}, filePath: 'test.tsx', content: ``, }), diff --git a/src/transform.ts b/src/transform.ts index 55d8f7a..b1969a6 100644 --- a/src/transform.ts +++ b/src/transform.ts @@ -3,6 +3,11 @@ import { createContext } from './context'; import type { ComponentTokens } from './types'; import { parser } from './parser'; +// TODO: This is what unplugin expects, but avoiding installing @pandacss/node bc of a type conflict +// Omit