FranckFreiburger / http-vue-loader

load .vue files from your html/js
MIT License
1.49k stars 275 forks source link

Require does not work #119

Closed ghost closed 4 years ago

ghost commented 4 years ago

It is not very useful to be able to import a .vue file, if all of the application code needs to be in that .vue file. I'm using httpVueLoader to load a .vue file, which in turns requires other .js files. But "require" does not work. When "require" called a .js file, no network request is done for that file, and the file is not run.

So, is it there any way to split the code into multiple files using httpVueLoader? And why doesn't require work?