🚀 Socket Launch Week Day 5:Introducing Repository Access Permissions and Custom Roles.Learn more
Sign In

html-rspack-plugin

Package Overview
Dependencies
Maintainers
1
Versions
44
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

html-rspack-plugin - npm Package Compare versions

Comparing version
6.1.0
to
6.1.1
+4
-0
lib/index.js

@@ -502,2 +502,6 @@ // @ts-check

if (source.indexOf('__with_placeholder__') >= 0) {
source = source.replace('__with_placeholder__', 'with');
}
// The LibraryTemplatePlugin stores the template result in a local variable.

@@ -504,0 +508,0 @@ // By adding it to the end the value gets extracted during evaluation

+3
-3

@@ -153,7 +153,7 @@ /* This loader renders the template with lodash.template if no other loader was found */

// The following part renders the template with lodash as a minimalistic loader
// The `function __with_placeholder__` will be replaced with `with` in the next step
// to make the code compatible with SWC strict mode
const { compiled, isEscaping } = template(source);
// Use `eval("require")("lodash")` to enforce using the native nodejs require
// during template execution
return `
module.exports = function (templateParams) { with(templateParams) {
module.exports = function (templateParams) { function __with_placeholder__(templateParams) {
${isEscaping ? escapeCode : ''}

@@ -160,0 +160,0 @@ // Execute the lodash template

{
"name": "html-rspack-plugin",
"version": "6.1.0",
"version": "6.1.1",
"license": "MIT",

@@ -5,0 +5,0 @@ "description": "Simplifies creation of HTML files to serve your Rspack bundles",