1export function getFormat(url, context, defaultGetFormat) {
2 // Load all .js files as ESM, regardless of package scope
3 if (url.endsWith('.js')) {
4 return {
5 format: 'module'
6 }
7 }
8 return defaultGetFormat(url, context, defaultGetFormat);
9}
10