Webpack .OBJLoader import external .obj files

I was wondering if there is a way to import .obj files dynamically / those with https urls i.e. from github into OBJLoader using Webpack.

I have tried with the line import objmodel from 'https://raw.githubusercontent.com/.../...obj but I got message: "The target environment doesn't support dynamic import() syntax so it's not possible to use external type 'module' within a script"