Skip to content

Commit

Permalink
docs: split loader docs (#6442)
Browse files Browse the repository at this point in the history
* docs: split loader api

* docs: split loader api zh

* docs: remove type decl detail in title
  • Loading branch information
SyMind authored May 6, 2024
1 parent 80d05de commit 81f97fb
Show file tree
Hide file tree
Showing 31 changed files with 918 additions and 670 deletions.
6 changes: 5 additions & 1 deletion website/docs/en/api/_meta.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,11 @@
"modules",
"node-api",
"hmr",
"loader-api",
{
"type": "dir",
"name": "loader-api",
"label": "Loader API"
},
{
"type": "dir",
"name": "plugin-api",
Expand Down
2 changes: 1 addition & 1 deletion website/docs/en/api/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ The Hot Module Replacement (HMR) improves the development experience by updating

Loaders are transformations that are applied to the source code of a module. They are written as functions that accept source code as a parameter and return a new version of that code with transformations applied.

[Learn more about the loaders!](/api/loader-api)
[Learn more about the loaders!](/api/loader-api/index)

## Plugins

Expand Down
335 changes: 0 additions & 335 deletions website/docs/en/api/loader-api.mdx

This file was deleted.

8 changes: 8 additions & 0 deletions website/docs/en/api/loader-api/_meta.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
[
"index",
"examples",
"context",
"rspack-specific-properties",
"inline",
"inline-match-resource"
]
Loading

0 comments on commit 81f97fb

Please sign in to comment.