svelte-loader
Advanced tools
Comparing version 3.2.1 to 3.2.2
@@ -66,2 +66,4 @@ const path = require('path'); | ||
const svelte_module_regex = /\.svelte(\.[^.]+)*\.(js|ts)$/ | ||
module.exports = function(source, map) { | ||
@@ -89,3 +91,3 @@ this.cacheable(); | ||
if (getMajor() >= 5 && (this.resourcePath.endsWith('.svelte.js') || this.resourcePath.endsWith('.svelte.ts'))) { | ||
if (getMajor() >= 5 && svelte_module_regex.test(this.resourcePath)) { | ||
try { | ||
@@ -92,0 +94,0 @@ const { js, warnings } = svelte.compileModule( |
{ | ||
"name": "svelte-loader", | ||
"version": "3.2.1", | ||
"version": "3.2.2", | ||
"author": "Nico Rehwaldt <git_nikku@nixis.de>", | ||
@@ -5,0 +5,0 @@ "description": "A webpack loader for svelte", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
23096
249