Skip to content

Commit

Permalink
[next-plugin]: add hasAppDir to next css loader config (#1060)
Browse files Browse the repository at this point in the history
Co-authored-by: Paul Grau <graup@users.noreply.github.com>
  • Loading branch information
SuttonJack and graup committed Apr 12, 2023
1 parent 9cefba8 commit 71f1dc5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/few-snails-yell.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@vanilla-extract/next-plugin': patch
---

Prepare next-plugin for Next 13 App Dir support
2 changes: 2 additions & 0 deletions packages/next-plugin/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,8 @@ export const createVanillaExtractPlugin =
isDevelopment: dev,
future: nextConfig.future || {},
experimental: nextConfig.experimental || {},
// @ts-ignore -- 'appDir' config is in beta
hasAppDir: nextConfig.experimental?.appDir,
} as any,
() => lazyPostCSS(dir, getSupportedBrowsers(dir, dev), undefined),
[],
Expand Down

0 comments on commit 71f1dc5

Please sign in to comment.