Skip to content

Instantly share code, notes, and snippets.

@seleb
Last active May 27, 2018 21:15
Show Gist options
  • Save seleb/35f406ed49c290923cf6ea589d15c199 to your computer and use it in GitHub Desktop.
Save seleb/35f406ed49c290923cf6ea589d15c199 to your computer and use it in GitHub Desktop.
one-liner for generating a set of es6 import/exports from an s-tengine2 scenario
assets.map(asset=>`export { default as ${asset.id} } from './${asset.src}'`).join(";\n");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment