We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
picomatch
1 parent a4bbe78 commit b657c2bCopy full SHA for b657c2b
packages/astro/src/index.ts
@@ -87,7 +87,16 @@ export default function createPlugin({
87
vite: {
88
optimizeDeps: {
89
entries: ['!**/src/(content|templates)/**'],
90
- include: process.env.TUTORIALKIT_DEV ? [] : ['@tutorialkit/react'],
+ include: [
91
+ process.env.TUTORIALKIT_DEV && '@tutorialkit/react',
92
+
93
+ /**
94
+ * The `picomatch` is CJS dependency used by `@tutorialkit/runtime`.
95
+ * When used via `@tutorialkit/astro`, it's a transitive dependency that's
96
+ * not automatically transformed.
97
+ */
98
+ '> picomatch/posix.js',
99
+ ].filter(Boolean),
100
},
101
define: {
102
__ENTERPRISE__: `${!!enterprise}`,
0 commit comments