content-tag
is a preprocessor for JS files that are using the content-tag proposal. This originated with Ember.js' GJS and GTS functionality. You can read more by checking out the original RFC
This preprocessor can be used to transform files using the content-tag
spec to standard JS. It is built on top of swc using Rust and is deployed as a wasm package.
npm install content-tag
let { Preprocessor } = require('content-tag');
let p = new Preprocessor();
let output = p.process('<template>Hi</template>');
console.log(output);
See the CONTRIBUTING.md file.