Closed cmdcolin closed 3 years ago
The react-msaview has
dist/package.json
has
"main":"dist/index.js"
contents of dist/index.js
import MSAView from './components/MSAView';
import MSAModel from './model';
export { MSAModel, MSAView };
@garrettjstevens do you think that the rollup config can handle these es6 node module exports
@cmdcolin It looks like there is a "module" field in the package.json that points to a file that doesn't exist in "dist". Rollup uses "module" preferentially over "main" if it exists, so removing the "module" should cause it to resolve "main" properly.
thanks so much for catching this @garrettjstevens
ran into a couple stumbler blocks but should be rolling now
Example change https://github.com/GMOD/jbrowse-plugin-msaview/compare/update_react_msaview?expand=1
The change to src/index.ts is not needed, but demonstrates that it receives a value of MSA undefined, and it is due to react-msaview being categorized as a external dependency
Example log if I add JSON.stringify in the tsdx.config.js
Key line