Message from JavaScript discussions

July 2018

— Yeah i will later


I just made some "dynamic" imports giving webpack a partial path that it can create the chunks which i can fetch dynamic. Every chunk imported the same lib for test purposes. Webpack should create a seperate chunk for this lib. otherwise I have the code of the same lib in each chunk.
I faced this problem importing react, but didnt have this problem importing preact

— Just weird

— I imported thoses libraries just to see how chunk splitting works

— Y tho

— Lol

— I have multiple chunks like this. With preact everything works as expected with react it doesnt

— Wtf

— This is just for testing not a real application😅

— Thinking about publishing some boilerplates soon but I couldnt figure this out yet

— Imports not in toplevel

— That can probably cause issues