mirror of
https://github.com/angular/angular
synced 2026-05-24 09:28:37 +00:00
Previously, a createConfig helper function was created to consolidate common esbuild configurations for DevTools. This function is asynchronous, but when it was used to set the configuration in various esbuild config files, it was used as if it was synchronous. This commit fixes this issue by wrapping the output of the function in await, so that it propagates the configurations to esbuild correctly. PR Close #48762
14 lines
363 B
JavaScript
14 lines
363 B
JavaScript
/**
|
|
* @license
|
|
* Copyright Google LLC All Rights Reserved.
|
|
*
|
|
* Use of this source code is governed by an MIT-style license that can be
|
|
* found in the LICENSE file at https://angular.io/license
|
|
*/
|
|
|
|
import createConfig from './esbuild-base.config.mjs';
|
|
|
|
export default {
|
|
...(await createConfig({enableLinker: false, optimize: false})),
|
|
format: 'iife',
|
|
};
|