Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
rules.push({
test: /perspective\.wasm\.js$/,
include: this.options.load_path,
use: {
loader: PSP_WORKER_LOADER,
options: this.options.workerLoaderOptions
}
});
}
rules.push({
test: /\.js$/,
loader: "source-map-loader"
});
const perspective_config = get_config();
if (perspective_config) {
rules.push({
test: /\.js$/,
include: /perspective[\\/].+?[\\/]config[\\/]index\.js$/,
use: [
{
loader: "string-replace-loader",
options: {
search: "global.__TEMPLATE_CONFIG__",
replace: JSON.stringify(perspective_config, null, 4)
}
}
]
});
}