Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

babel-plugin-ember-template-compilation

Package Overview
Dependencies
Maintainers
16
Versions
23
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

babel-plugin-ember-template-compilation

Babel implementation of Ember's low-level template-compilation API

  • 1.0.1
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
74K
decreased by-55.96%
Maintainers
16
Weekly downloads
 
Created

What is babel-plugin-ember-template-compilation?

The babel-plugin-ember-template-compilation package is a Babel plugin designed to precompile Ember.js templates. This plugin allows developers to write templates in a more concise and readable format, which are then compiled into JavaScript functions that can be used within Ember applications.

What are babel-plugin-ember-template-compilation's main functionalities?

Precompiling Templates

This feature allows you to precompile Ember.js templates using the Ember template compiler. The precompiled templates are then transformed into JavaScript functions that can be used within your Ember application.

module.exports = function (babel) {
  return {
    plugins: [
      ['babel-plugin-ember-template-compilation', {
        precompile: require('ember-source/dist/ember-template-compiler').precompile
      }]
    ]
  };
};

Custom Template Compiler

This feature allows you to use a custom template compiler instead of the default Ember template compiler. This can be useful if you have specific requirements for how your templates should be compiled.

module.exports = function (babel) {
  return {
    plugins: [
      ['babel-plugin-ember-template-compilation', {
        precompile: customTemplateCompiler
      }]
    ]
  };
};

function customTemplateCompiler(templateString) {
  // Custom compilation logic
  return compiledTemplate;
}

Other packages similar to babel-plugin-ember-template-compilation

FAQs

Package last updated on 04 Nov 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc