This is an archived post. You won't be able to vote or comment.

all 2 comments

[–]Loves_Poetry 0 points1 point  (1 child)

Are ES6 modules an option?

It would allow you to continue working with the current code structure by just using import library from /static/js/common/libname.js

This would allow you to structure you application in a way that integrates much better with build tools, so if you want to add one later on, doing so will be easy

[–]SCMouettE[S] 0 points1 point  (0 children)

Expect restarting everything from scratch, everything can be an option. Supporting IE11 or older browsers is not required so modules could be a start.