3 ms·
> Do you mean import '/web/X'? Not if you use a build tool for your frontend. > Even so, that requires a build tool. That was basically what I was suggesting
by dismantlethesun 10y ago
> Do you mean import '/web/X'?
Not if you use a build tool for your frontend.
> Even so, that requires a build tool.
That was basically what I was suggesting. I'm not sure what the other option really is. If you're working within the browser (implied by this being a frontend), then you have to use a build tool since javascript modules/imports haven't landed in any browser yet.
- spankalee 10y ago> If you're working within the browser (implied by this being a frontend), then you have to use a build tool since javascript modules/imports haven't landed in any browser yet. For now, but native JS module loading is right around the corner, and at that point I don't want to have a required tool to load my modules. Currently I use HTML Imports, which don't require tools because they use relative URLs. It works really well, so I hope to use that pattern with JS modules.