JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 1254386
  • Score
    100M100P100Q199601F
  • License MIT

Package Exports

  • vue-template-es2015-compiler
  • vue-template-es2015-compiler/buble

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (vue-template-es2015-compiler) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

This is an internal package used by vue-loader and vueify. It processes the raw render functions generated by vue-template-compiler to:

  1. add selective support to a few ES2015 features that are handy in template expressions:
  • property shorthand
  • computed property name
  • template strings
  1. remove the with block inside render functions to make it strict-mode compliant. This is performed only at build time so that the base template compiler can be extremely small and lightweight.

The buble implementation is built from a fork at https://github.com/yyx990803/buble