While acorn itself won't supportimport() spec until it hasn't reached stage 4, in some cases it's rather painful not to be able to use this syntax in the same file with bem imports. Fortunately, falafel supports custom parser and we could manually use acorn with extended syntax support.
Coverage increased (+0.2%) to 93.082% when pulling ea42036efe1b95b50616f4620ed213d7410cdb10 on keann:dynamic-import-support into d509488d5397d53286dbec68a17f052e28e618b1 on bem:master.
While acorn itself won't support
import()
spec until it hasn't reached stage 4, in some cases it's rather painful not to be able to use this syntax in the same file with bem imports. Fortunately, falafel supports custom parser and we could manually use acorn with extended syntax support.