Моя структура папок
src/lib/componentA.tsx
src/index.tsx
после запуска сборки с использованием microbundle-crl
я получаю следующее
dist/lib/componentA.d.ts /* problem is that no js file is created at this path*/
dist/index.js
Я тоже ожидаю dist/lib/componentA.js
файл, но он никогда не создается и все logi c объединены в один индекс. js, которого я не хочу. Мой tsconfig выглядит следующим образом:
{
"compilerOptions": {
"outDir": "dist",
"module": "esnext",
"lib": ["dom", "esnext"],
"moduleResolution": "node",
"jsx": "react",
"sourceMap": true,
"declaration": true,
"esModuleInterop": true,
"noImplicitReturns": true,
"noImplicitThis": true,
"noImplicitAny": true,
"strictNullChecks": true,
"suppressImplicitAnyIndexErrors": true,
"noUnusedLocals": true,
"noUnusedParameters": true,
"allowSyntheticDefaultImports": true
},
"include": ["src"],
"exclude": ["node_modules", "dist", "example"]
}
Любая помощь приветствуется