Skip to content

Commit 1651c39

Browse files
committed
clean comments
1 parent 93044b8 commit 1651c39

2 files changed

Lines changed: 1 addition & 5 deletions

File tree

packages/react/tsconfig.umd.json

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,5 @@
66
"declaration": true,
77
"emitDeclarationOnly": true
88
},
9-
// Allowlist: emit declarations only for what the public entry (index.ts) imports — the same
10-
// graph webpack bundles — so internal-only folders (recipes, story/test fixtures) never ship.
11-
// src/*.d.ts re-adds the ambient global + JSX declarations, which nothing imports.
129
"include": ["src/index.ts", "src/*.d.ts"]
1310
}

packages/react/webpack.config.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,7 @@ module.exports = {
4949
loader: 'ts-loader',
5050
options: {
5151
configFile: path.resolve(__dirname, 'tsconfig.build.json'),
52-
// Declarations come from the dedicated allowlist pass (tsconfig.umd.json), so
53-
// webpack only bundles JS — it must not also emit the unscoped whole-tree .d.ts.
52+
// We use tsc to emit declaration files. See tsconfig.
5453
compilerOptions: {
5554
declaration: false,
5655
},

0 commit comments

Comments
 (0)