Using ES6 modules in Chrome extensions
Starting from Chrome 61+, modules syntax has been steady implemented in Chrome. Today (Chrome 65), I felt like refractoring one of my extensions to benefit of it.
First, how can you split the code into separate modules? You can check out this commit of mine, long story short, imagine you have similar code in your options and popup files.