feat: csv-loader?

This commit is contained in:
2026-03-31 13:02:29 +08:00
parent 4296c2bdcd
commit fe2e323d19
6 changed files with 229 additions and 11 deletions
+18
View File
@@ -146,6 +146,24 @@ Creates a validation function for the given schema.
- Special characters can be escaped with backslash: `\;`, `\[`, `\]`, `\\`
- Empty arrays/tuples are not allowed
## CSV Loader
For loading CSV files with schema validation in rspack, see [csv-loader.md](./csv-loader.md).
```javascript
// rspack.config.js
module.exports = {
module: {
rules: [
{
test: /\.schema\.csv$/,
use: 'inline-schema/csv-loader',
},
],
},
};
```
## License
ISC