Hello Cloudflare community! I have a trouble with webpack and Cloudflare pages.
Link: develop.kop-dev.pages.dev
I have a trouble loading dynamic modules in typescript using Webpack.
Everything loads (Static imports, Assets etc…) But if there is code like
const { getSpellName, getSpellDescription } = await import('./KoP_Locale/abilites');
It is resolved to different URL:
https://static.cloudflareinsights.com
but it should be the link kop-dev.pages
It sometimes works if i rebuild the page multiple times, sometimes it works. Do you know what i can possibly do wrong or if this is an issue with Cloudflare?
I am using ‘tsconfig-paths-webpack-plugin’ to resolve non-relative paths.
Thanks for all helps!