davis / plugin-hbs

Handlebars template loader plugin for SystemJS
MIT License
21 stars 9 forks source link

Support for ESM format #13

Closed ffflabs closed 8 years ago

ffflabs commented 8 years ago

With this modification, you can pick the format that suits you better between ESM, AMD and CJS (default) in the config:

meta: {
    "*.hbs": {
      "defaultExtension": false,
      "format": "esm",
      "loader": "hbs"
    }
}

I resorted to this modification because the hardcoded CJS style translation didn't get along well with rollup static optimization when using jspm build.

davis commented 8 years ago

This is awesome! Merged.