ef.js

Declarative DOM helper experiment

  1. 1
  2. 2
  3. 3
  4. 4
  5. 5
  6. 6
  7. 7
// ESBuild has a bug that it emits a code to call `globImport_public_<ext>` without
// the helper function not defined. Using glob-import from plain JS file works as
// a workaround.
// https://github.com/evanw/esbuild/issues/3319
export function loadDocFile(slug) {
  return import(`../docs/${slug}.md`);
}