shinGangan / nuxt-pandacss

Panda CSS module for Nuxt.
MIT License
0 stars 0 forks source link

want to auto-imports feature #2

Closed shinGangan closed 9 months ago

shinGangan commented 1 year ago

※ 個人的NOTE

NOTE

before

import { css } from 'styled-system/css';

after

export default defineNuxtConfig({
  pandacss: {
    // ... other options
    imports: [
      { from: 'css', imports : 'css' },
      { from: 'center, stack', imports : 'patterns' },
    ]
  },
});

上記は unjs/unimport に寄せている。

shinGangan commented 1 year ago

addImportsSources()で解決しそう。

=> from '#imports'が必要になりそう。完全Auto-Importsを実現できていない(ローカル実験において)

shinGangan commented 9 months ago

Issue

https://github.com/wattanx/nuxt-pandacss/issues/38