This repository has been archived by the owner on Aug 4, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 86
Using modulesOnly: true
triggers unresolved dependency even when target defines module entry
#200
Comments
UPDATE: this doesn't work — see later comment. Turns out this is due to #144 (comment). If I add the
(A preact workaround for this sort of behavior would also avoid this gotcha: preactjs/preact#1425) |
I spoke to soon. Not sure what I was testing, but adding |
Looks like preact is exporting multiple items, which is probably breaking |
I tried to reproduce it with the latest versions. All works perfectly! Repro here: https://github.com/mecurc/200-rollup-issue Used versions:
Console output: $ rollup -c
src/index.js → dist/bundle.js...
created dist/bundle.js in 278ms
Done in 0.71s Can be closed now. |
Closed
7 tasks
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I am compiling code like this:
Using this via
--config rollup.config.mjs
:Preact's package.json includes:
But I still get an error:
The text was updated successfully, but these errors were encountered: