This package is an internal build-time utility primarily used by `vue-loader` and `vueify` in Vue 2 projects. Its main function is to post-process raw render functions generated by `vue-template-compiler` to introduce support for ES2015+ features within template expressions, leveraging a custom fork of Buble. Additionally, it removes the `with` block from render functions to ensure strict-mode compliance. The current stable version is 1.9.1, but the package has not seen updates since February 2019, indicating it is no longer actively maintained for modern Vue development. It is a critical component for enabling advanced JavaScript syntax in Vue 2 templates during the build process, distinguishing itself by its specific focus on ES2015+ transpilation and strict-mode compatibility for Vue 2's compilation output.
npm install vue-template-es2015-compilerVerified import paths — ran on the pinned version, not inferred.
Demonstrates programmatic usage of the compiler to process a raw Vue render function string, transpiling ES2015+ features and removing `with` blocks.
For Vue 3 projects, use `@vue/compiler-sfc` or `@vue/cli-service` which integrates the correct compilers. If migrating from Vue 2, consult the Vue 3 migration guide.
Ensure `Object.assign` is polyfilled for target browsers, especially IE. Modern Vue CLI setups typically handle this automatically.
Rely on Vue CLI or `vue-loader` to integrate this compiler during the build process, rather than attempting direct usage in application code.
If encountering issues with modern tooling or language features, consider if your project can upgrade to Vue 3 where compilation is handled by actively maintained packages.
Include a polyfill for `Object.assign` in your project's build process or runtime environment to support older browsers. Modern build setups often include `core-js` for this.
Ensure you are using the correct compiler for your Vue version. For Vue 3, this compiler is not used; `@vue/compiler-sfc` and `@vue/compiler-dom` are the standard. If in Vue 2, verify `vue-loader` and `vue-template-compiler` versions are compatible.
No dependency data recorded yet.