svelte-loader
Advanced tools
Comparing version 1.2.1 to 1.3.0
# 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, |
{ | ||
"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 @@ |
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
12563
24
224