Skip to content

Commit

Permalink
chore: fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
antfu committed Aug 22, 2022
1 parent 111f1e7 commit 595a1cf
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
1 change: 1 addition & 0 deletions packages/unocss/build.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ export default defineBuildConfig({
declaration: true,
externals: [
'vite',
'astro',
'webpack',
'@unocss/webpack',
],
Expand Down
7 changes: 4 additions & 3 deletions packages/unocss/src/astro.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
import type { AstroIntegrationConfig } from '@unocss/astro'
import AstroIntegration from '@unocss/astro'
import AstroIntegrationPlugin from '@unocss/astro'
import presetUno from '@unocss/preset-uno'
import type { AstroIntegration } from 'astro'

export default function UnocssAstroIntegration<Theme extends {}>(
config?: AstroIntegrationConfig<Theme>,
) {
return AstroIntegration(
): AstroIntegration {
return AstroIntegrationPlugin(
config,
{
presets: [
Expand Down

0 comments on commit 595a1cf

Please sign in to comment.