mirror of
https://github.com/angular/angular
synced 2026-05-24 09:28:37 +00:00
Move all of our loading into a local defaults.bzl file instead of mixed loading via tools/defaults and adev/defaults PR Close #62627
17 lines
481 B
JavaScript
17 lines
481 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.dev/license
|
|
*/
|
|
|
|
export default {
|
|
// Neceesary because mermaid related scripts rely on cjs based requires.
|
|
banner: {
|
|
'js': `
|
|
import {createRequire as __cjsCompatRequire} from 'module';
|
|
const require = __cjsCompatRequire(import.meta.url);`,
|
|
},
|
|
resolveExtensions: ['.js', '.mjs'],
|
|
};
|