Breaking Changes:
Removes the ability to use named imports from non-ES modules (eg import {readFile} from 'fs' should be import fs from 'fs'; fs.readFile).
So import {Handlebars} now returns undefined. I guess nobody was using this meta, but anyway, with this PR I fixed that issue to import as the default export.
import Handlebars from '${handlebarsRuntimePath}'; \n export default Handlebars.template(${precompiled});
In PR #13 the meta
format
when set toesm
would performBut, since SystemJS release v0.20.0, I quote:
So
import {Handlebars}
now returns undefined. I guess nobody was using this meta, but anyway, with this PR I fixed that issue to import as the default export.Which returns the proper object.