Skip to content

Commit

Permalink
docs: fix document format for __next_private_export_map__ (#54952)
Browse files Browse the repository at this point in the history
Fix the document format of `__next_private_export_map__`

follow up: #54695
  • Loading branch information
huozhi committed Sep 3, 2023
1 parent c013e98 commit 9abf886
Showing 1 changed file with 4 additions and 1 deletion.
Expand Up @@ -16,7 +16,10 @@
* be `['a']`. Then, it request the "__barrel_transform__" SWC transform to load
* `foo.js` and receive the following output:
*
* export const __next_private_export_map__ = '[["./a","a","a"],["./b","b","b"],["./c","c","c"],...]'
* export const __next_private_export_map__ = '[["a","./a","a"],["b","./b","b"],["c","./c","c"],...]'
*
* format: '["<imported identifier>", "<import path>", "<exported name>"]'
* e.g.: import { a as b } from './module-a' => '["b", "./module-a", "a"]'
*
* The export map, generated by SWC, is a JSON that represents the exports of
* that module, their original file, and their original name (since you can do
Expand Down

0 comments on commit 9abf886

Please sign in to comment.