to node and JS in general). I made my library and made it support browsers and made the dist.js file using webpack.
when I do <script src="dist.js"> it works fine and all but when someone tries import { ClassName } from './dist.js'; he'll get
Rollup: Missing Export
'ClassName' is not exported by dist.js
What could be the cause of that ? 🤔 do I need to specify more stuff in webpack ?
may be usr missing classNmae
UMD and ESM can't be one file
Обсуждают сегодня