Skip to content

Commit

Permalink
make the module build report as esm (#27410)
Browse files Browse the repository at this point in the history
* make the module build report as 1p-esm

* add 'esm=1' to param if IS_ESM
  • Loading branch information
erwinmombay committed Mar 30, 2020
1 parent 4fb74b1 commit 9e10b95
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/error.js
Expand Up @@ -523,7 +523,10 @@ export function getErrorReportData(
data['dw'] = detachedWindow ? '1' : '0';

let runtime = '1p';
if (self.context && self.context.location) {
if (IS_ESM) {
runtime = 'esm';
data['esm'] = '1';
} else if (self.context && self.context.location) {
data['3p'] = '1';
runtime = '3p';
} else if (getMode().runtime) {
Expand Down

0 comments on commit 9e10b95

Please sign in to comment.