module@warp-drive/build-config Legacy Package
Legacy package
@warp-drive/build-config is a legacy package. New code should use @warp-drive/core/build-config instead.
For an app still on these packages, see Legacy Package Setup.
This package is the implementation home of the setConfig build plugin that configures deprecations, optional features, development/testing support and debug logging. Apps import it as @warp-drive/core/build-config, which re-exports every entry point below; the documentation for each lives on the @warp-drive/core page it maps to.
Apps still importing from this package configure it with setConfig in ember-cli-build:
ts
'use strict';
const EmberApp = require('ember-cli/lib/broccoli/ember-app');
module.exports = async function (defaults) {
const { setConfig } = await import('@warp-drive/build-config');
const app = new EmberApp(defaults, {});
setConfig(app, __dirname, {
// settings here
});
const { buildOnce } = await import('@embroider/vite');
const { compatBuild } = await import('@embroider/compat');
return compatBuild(app, buildOnce);
};Available settings include:
Every entry point maps to its @warp-drive/core equivalent:
@warp-drive/build-config entry | re-exported as |
|---|---|
. (root) | @warp-drive/core/build-config |
/babel-macros | @warp-drive/core/build-config/babel-macros |
/canary-features | @warp-drive/core/build-config/canary-features |
/debugging | @warp-drive/core/build-config/debugging |
/deprecations | @warp-drive/core/build-config/deprecations |
/env | @warp-drive/core/build-config/env (internal, no API page) |
/macros | @warp-drive/core/build-config/macros (internal, no API page) |