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

svelte-loader

Package Overview
Dependencies
Maintainers
2
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 1.2.1 to 1.3.0

4

CHANGELOG.md
# svelte-loader changelog
## 1.3.0
* Pass through `options.generate` ([#10](https://github.com/sveltejs/svelte-loader/pull/10))
## 1.2.0

@@ -4,0 +8,0 @@

@@ -13,2 +13,3 @@ const { compile } = require('svelte');

filename: filename,
generate: query.generate,
format: query.format || 'es',

@@ -15,0 +16,0 @@ shared: query.shared || false,

2

package.json
{
"name": "svelte-loader",
"version": "1.2.1",
"version": "1.3.0",
"author": "Nico Rehwaldt <git_nikku@nixis.de>",

@@ -5,0 +5,0 @@ "description": "A webpack loader for svelte",

@@ -211,2 +211,23 @@ /* global describe, it */

describe('generate', function() {
it('should configure generate=undefined (default)',
testLoader('test/fixtures/good.html', function(err, code, map) {
expect(err).not.to.exist;
expect(code).not.to.contain('SvelteComponent.render = function ( root, options ) {');
})
);
it('should configure generate=ssr',
testLoader('test/fixtures/good.html', function(err, code, map) {
expect(err).not.to.exist;
expect(code).to.contain('SvelteComponent.render = function ( root, options ) {');
}, { generate: 'ssr' })
);
});
});

@@ -213,0 +234,0 @@

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