You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was using this module to try to solve a pesky Error: 'default' is not exported by node_modules\<xyz>problem. But it didn't go as planned, so in my desperation reaching here to double-check if this is a problem that in principle is what this module should solve. 🔢
As it may be that I do not understand correctly that if this module indeed would solve, at least in some cases, such problems. It looks to be these are because of UMD -> ES6 export changes, but I may be wrong. The other things are that I think I should also use @rollup/plugin-node-resolve to resolve paths. Is this right?
I have defined
import resolve from '@rollup/plugin-node-resolve';
import ts from "@wessberg/rollup-plugin-ts";
import {cjsToEsm} from "cjstoesm";
[...]
plugins: [
resolve({ browser: true, preferBuiltins: true }),
ts({ transformers: [cjsToEsm()] })
]
Another thing is, does this plugin pick up also the dependencies that are referenced by the libraries imported by the code?
I was using this module to try to solve a pesky
Error: 'default' is not exported by node_modules\<xyz>
problem. But it didn't go as planned, so in my desperation reaching here to double-check if this is a problem that in principle is what this module should solve. 🔢As it may be that I do not understand correctly that if this module indeed would solve, at least in some cases, such problems. It looks to be these are because of UMD -> ES6 export changes, but I may be wrong. The other things are that I think I should also use
@rollup/plugin-node-resolve
to resolve paths. Is this right?I have defined
Another thing is, does this plugin pick up also the dependencies that are referenced by the libraries imported by the code?
(That config is at https://github.com/veikkoeeva/erc1155sample/blob/main/web/rollup.config.js#L27 if it matters, and strangely there is a difference in output if I move it from baseConfig to the merge section, though it's not related to this module).
The text was updated successfully, but these errors were encountered: