EvolvedWeb / evowc

Evolved Web Components
MIT License
8 stars 0 forks source link

Provide config to set transpiled filename extension to .ts #7

Closed intervalia closed 1 year ago

intervalia commented 1 year ago

For those that want to write TypeScript it would be nice to allow their transpiled extension to be .ts instead of .js

intervalia commented 1 year ago

This is fixed in 0.5.0 Either set the extension in evo.wc.outExtname in package.json

"evo": {
  "wc": {
    "output": "static/js",
    "outExtname": ".ts",
    "minify": {
      "css": true,
      "html": true
    }
  }
}

Or add the attribute ext=".ts" in the <component> tag of your element.