problems with window object and dependencies for angular #2921
-
Hi, My app.ts file basically does:
and I went into my When loading my app, I saw the The problem is, angular is getting loaded before jquery is loaded, so angular is defaulting to using I found this stack overflow post: https://stackoverflow.com/questions/40732787/how-to-add-jquery-to-window-object-when-using-angular-typescript-webpack So at the top of my
And this fixes the issue, but seems terrible... Is there a |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 1 reply
-
We hoist import, but we don't change import order. For example, when I tried it in repl I get proper expected order
Same goes for CJS
Can you share repro via play.swc.rs import order gets unexpected? |
Beta Was this translation helpful? Give feedback.
-
Hmm interesting, ok I will try to put together a demo repo soon that will show my problem. |
Beta Was this translation helpful? Give feedback.
-
Changed category to Q&A for now until we get repro case. |
Beta Was this translation helpful? Give feedback.
-
Sorry, I totally forgot to come back to this thread.. it turned out there was a rogue / accidental |
Beta Was this translation helpful? Give feedback.
Sorry, I totally forgot to come back to this thread.. it turned out there was a rogue / accidental
import 'angular'
in a file that was happening before jQuery was loaded. So this was the culprit and is no longer an issue.