next.js/test/development/app-dir/turbopack-import-assertions-use/node_modules/test-replace-loader/index.js
index.js9 lines371 B
// 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)
}
Quest for Codev2.0.0
/
SIGN IN