A Parcel 2 transformer for slm.
- Imports are not resolved via parcel. This means that all inputs such as partials must be real files on disk.
- Currently relies on a private interface to identify imported files.
- Ability to compile to client-side templates.
Enable the transformer:
// .parcelrc
{
extends: ["@parcel/config-default"],
transforms: {
"*.slm": ["parcel-transformer-slm"],
},
}
Configure slm:
// slm.config.js
module.exports = {
format: "html",
};
This package follows semver.
- Changes to the exact HTML output is not considered a breaking change.