ember-cli/ember-cli

View on GitHub
blueprints/app/files/ember-cli-build.js

Summary

Maintainability
A
0 mins
Test Coverage
'use strict';

const EmberApp = require('ember-cli/lib/broccoli/ember-app');

module.exports = function (defaults) {
  const app = new EmberApp(defaults, {
    <% if (typescript) {%>'ember-cli-babel': { enableTypeScriptTransform: true },

    <% } %>// Add options here
  });

  <% if (embroider) { %>const { Webpack } = require('@embroider/webpack');
  return require('@embroider/compat').compatBuild(app, Webpack, {
    staticAddonTestSupportTrees: true,
    staticAddonTrees: true,
    staticHelpers: true,
    staticModifiers: true,
    staticComponents: true,
    staticEmberSource: true,
    skipBabel: [
      {
        package: 'qunit',
      },
    ],
  });<% } else { %>return app.toTree();<% } %>
};