Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

svelte-loader

Package Overview
Dependencies
Maintainers
5
Versions
52
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

svelte-loader - npm Package Compare versions

Comparing version 3.2.1 to 3.2.2

4

index.js

@@ -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",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc