Closed tictaqqn closed 1 year ago
bug report
When running npm install react-select-async-pagenate installed node_modules is like below.
npm install react-select-async-pagenate
node_modules/react-select-async-paginate ├── README.md ├── dist │ ├── esm │ │ ├── index.js │ │ └── index.js.map │ ├── index.d.ts │ ├── index.js │ └── index.js.map └── package.json
and in vite project, ES module is referenced and type file index.d.ts is not loaded.
index.d.ts
index.d.ts should be added under dist/esm so that the type file is loaded when ES module is used.
dist/esm
node_modules/react-select-async-paginate ├── README.md ├── dist │ ├── esm │ │ ├── index.d.ts # THIS SHOULD BE ADDED │ │ ├── index.js │ │ └── index.js.map │ ├── index.d.ts # Maybe this is not needed. │ ├── index.js │ └── index.js.map └── package.json
react, vite mac "react-dom": "^18.2.0", "react-select-async-paginate": "^0.7.2"
Hello. Check please 0.7.3
0.7.3
Thx for your quick handling!
Are you submitting a bug report or a feature request or a question?
bug report
What is the current behavior?
When running
npm install react-select-async-pagenate
installed node_modules is like below.and in vite project, ES module is referenced and type file
index.d.ts
is not loaded.What is the expected behavior?
index.d.ts
should be added underdist/esm
so that the type file is loaded when ES module is used.Sandbox Link
What's your environment?
react, vite mac "react-dom": "^18.2.0", "react-select-async-paginate": "^0.7.2"
Other information