Skip to content

Commit 1b13f7f

Browse files
jeffin143chenxsan
andauthored
docs(api): add asset info for sourceFilename and javascriptModule (#4116)
* Docs(api): add asset info for sourceFilename and javascriptModule * add missing commas Co-authored-by: Sam Chen <[email protected]>
1 parent 3ba8016 commit 1b13f7f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/content/api/stats.mdx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,9 @@ Each `assets` object represents an `output` file emitted from the compilation. T
8181
'immutable': true, // A flag telling whether the asset can be long term cached (contains a hash)
8282
'size': 1058, // The size in bytes, only becomes available after asset has been emitted
8383
'development': true, // A flag telling whether the asset is only used for development and doesn't count towards user-facing assets
84-
'hotModuleReplacement': true // A flag telling whether the asset ships data for updating an existing application (HMR)
84+
'hotModuleReplacement': true, // A flag telling whether the asset ships data for updating an existing application (HMR)
85+
'sourceFilename': 'originalfile.js', // sourceFilename when asset was created from a source file (potentially transformed)
86+
'javascriptModule': true // true, when asset is javascript and an ESM
8587
}
8688
}
8789
```

0 commit comments

Comments
 (0)