feat: csv-loader?
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user