2021-09-27 23:17:43 +00:00
|
|
|
/**
|
|
|
|
|
* @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
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
module.exports = {
|
2022-12-07 16:16:04 +00:00
|
|
|
resolveExtensions : ['.mjs', '.js'],
|
2021-09-27 23:17:43 +00:00
|
|
|
// Note: `@bazel/esbuild` has a bug and does not pass-through the format from Starlark.
|
2022-12-07 16:16:04 +00:00
|
|
|
format : 'esm',
|
|
|
|
|
banner : {
|
2021-09-27 23:17:43 +00:00
|
|
|
// Workaround for: https://github.com/evanw/esbuild/issues/946
|
2022-12-07 16:16:04 +00:00
|
|
|
js : `
|
2021-09-27 23:17:43 +00:00
|
|
|
import {createRequire as __cjsCompatRequire} from 'module';
|
|
|
|
|
const require = __cjsCompatRequire(import.meta.url);
|
|
|
|
|
`,
|
|
|
|
|
},
|
|
|
|
|
};
|