-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtsconfig.manager.json
More file actions
20 lines (20 loc) · 945 Bytes
/
Copy pathtsconfig.manager.json
File metadata and controls
20 lines (20 loc) · 945 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
{
"extends": "./tsconfig.json",
"compilerOptions": {
// Classic JSX for manager code only.
//
// Storybook's manager builder maps the bare `react` specifier to
// `globalThis.__REACT__` — Storybook's own React 18 — but it does NOT map
// `react/jsx-runtime`. With the automatic runtime, an addon's manager bundle
// therefore ships the *consumer's* jsx-runtime (React 19 for most projects)
// while `React` itself is Storybook's React 18. React 19's jsx-runtime reads
// `React.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE`,
// which React 18 does not have, and crashes with
// `Cannot read properties of undefined (reading 'recentlyCreatedOwnerStacks')`.
//
// The classic transform emits `React.createElement`, which resolves through
// the globalized `react` specifier, so only one React copy is ever involved.
"jsx": "react"
},
"include": ["src/**/*"]
}