Buckets:
silverwolf-x/project / test /development /app-dir /turbopack-import-assertions-use /node_modules /test-replace-loader /index.js
| // A loader that replaces a placeholder with a specific value. | |
| // Accepts options: { search: string, replace: string } | |
| module.exports = function replaceLoader(source) { | |
| const options = this.getOptions ? this.getOptions() : {} | |
| const search = options.search || 'PLACEHOLDER' | |
| const replace = options.replace || 'REPLACED' | |
| return source.replaceAll(search, replace) | |
| } | |
Xet Storage Details
- Size:
- 371 Bytes
- Xet hash:
- 4e63510a7e66deaf3e402277fe9460c13e1298fc5a5fbb7ca681a8674e798403
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.