Files
threshold-ui/ui/admin/ember-cli-build.js
T

60 lines
1.6 KiB
JavaScript
Raw Normal View History

/**
* Copyright (c) HashiCorp, Inc.
* SPDX-License-Identifier: BUSL-1.1
*/
2020-05-18 17:02:09 -04:00
'use strict';
const EmberApp = require('ember-cli/lib/broccoli/ember-app');
module.exports = function (defaults) {
2023-11-10 11:21:52 -05:00
const app = new EmberApp(defaults, {
2021-05-11 15:29:46 -04:00
hinting: false,
2020-12-09 14:07:39 -05:00
'ember-cli-babel': {
2021-03-05 17:27:00 -05:00
includeExternalHelpers: true,
2020-12-09 14:07:39 -05:00
},
'ember-simple-auth': {
useSessionSetupMethod: true,
},
2020-05-18 17:02:09 -04:00
babel: {
sourceMaps: 'inline',
plugins: [
require.resolve('ember-concurrency/async-arrow-task-transform'),
],
2020-05-18 17:02:09 -04:00
},
sourcemaps: {
enabled: true,
extensions: ['js'],
},
2020-11-18 19:18:34 -05:00
svg: {
2021-03-05 17:27:00 -05:00
paths: ['../../addons/core/public'],
},
2023-09-26 14:21:20 -07:00
'@embroider/macros': {
setConfig: {
'@ember-data/store': {
polyfillUUID: true,
},
},
},
2023-11-07 11:39:15 -05:00
// TODO: Update to 4.12 when deprecations are resolved
// as multiple things break when forcing compatibility on > 4.6
2023-11-07 11:39:15 -05:00
emberData: {
2024-02-05 15:59:58 -05:00
compatWith: '4.6',
2023-11-07 11:39:15 -05:00
},
2020-05-18 17:02:09 -04:00
});
// Use `app.import` to add additional libraries to the generated
// output files.
//
// If you need to use different assets in different
// environments, specify an object as the first parameter. That
// object's keys should be the environment name and the values
// should be the asset to use in that environment.
//
// If the library that you are including contains AMD or ES6
// modules that you would like to import into your application
// please specify an object with the list of modules as keys
// along with the exports of each module as its value.
return app.toTree();
};