Skip to content

Commit 0ef46b6

Browse files
authored
docs(configuration): add output.importMetaName (#7153)
1 parent ebc80a8 commit 0ef46b6

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

src/content/configuration/output.mdx

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -832,6 +832,23 @@ module.exports = {
832832
};
833833
```
834834

835+
## output.importMetaName
836+
837+
`string`
838+
839+
The name of the native `import.meta` object (can be exchanged for a polyfill).
840+
841+
**webpack.config.js**
842+
843+
```javascript
844+
module.exports = {
845+
//...
846+
output: {
847+
importMetaName: 'pseudoImport.meta',
848+
},
849+
};
850+
```
851+
835852
## output.library
836853

837854
Output a library exposing the exports of your entry point.

0 commit comments

Comments
 (0)