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