How to use babel-plugin-ember-modules-api-polyfill - 1 common examples

To help you get started, we’ve selected a few babel-plugin-ember-modules-api-polyfill examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github ember-cli / ember-twiddle / app / services / ember-cli.js View on Github external
import Babel from 'babel-core';
import Path from 'path';
import HbsPlugin from '../plugins/hbs-plugin';
import NewModulesPlugin from 'babel-plugin-ember-modules-api-polyfill';
import blueprints from '../lib/blueprints';
import Ember from 'ember';
import moment from 'moment';
import _template from "lodash/template";
import { pushDeletion } from 'ember-twiddle/utils/push-deletion';

const { computed, inject, RSVP, run, $, testing } = Ember;
const twiddleAppName = 'twiddle';
const oldTwiddleAppNames = ['demo-app', 'app'];
const hbsPlugin = new HbsPlugin(Babel);
const newModulesPlugin = new NewModulesPlugin(Babel);

// These files will be included if not present
const boilerPlateJs = [
  'app',
  'router',
  'initializers/router',
  'initializers/mouse-events',
  'resolver'
];

// These files have to be present
const requiredFiles = [
  'twiddle.json'
];

const availableBlueprints = {

babel-plugin-ember-modules-api-polyfill

Polyfill for Ember JS API.

MIT
Latest version published 3 years ago

Package Health Score

56 / 100
Full package analysis

Popular babel-plugin-ember-modules-api-polyfill functions