svelte-loader
Advanced tools
Comparing version 1.1.0 to 1.2.0
# svelte-loader changelog | ||
## 1.2.0 | ||
* Add option to specify shared output ([svelte#218](https://github.com/sveltejs/svelte/issues/218)) | ||
## 1.1.0 | ||
@@ -4,0 +8,0 @@ |
@@ -14,2 +14,3 @@ const { compile } = require('svelte'); | ||
format: query.format || 'es', | ||
shared: query.shared || false, | ||
name: query.name, | ||
@@ -16,0 +17,0 @@ css: query.css !== false, |
{ | ||
"name": "svelte-loader", | ||
"version": "1.1.0", | ||
"version": "1.2.0", | ||
"author": "Nico Rehwaldt <git_nikku@nixis.de>", | ||
@@ -8,3 +8,3 @@ "description": "A webpack loader for svelte", | ||
"scripts": { | ||
"pretest": "npm run lint", | ||
"all": "npm run lint && npm run test", | ||
"test": "mocha --harmony --full-trace --check-leaks", | ||
@@ -26,3 +26,3 @@ "lint": "eslint index.js test/**/*.js" | ||
"sinon-chai": "^2.8.0", | ||
"svelte": "^1.2.0" | ||
"svelte": "^1.6.0" | ||
}, | ||
@@ -34,4 +34,4 @@ "peerDependencies": { | ||
"type": "git", | ||
"url": "git@github.com:svelte/svelte-loader.git" | ||
"url": "git@github.com:sveltejs/svelte-loader.git" | ||
} | ||
} |
@@ -187,2 +187,26 @@ /* global describe, it */ | ||
describe('shared', function() { | ||
it('should configure shared=false (default)', | ||
testLoader('test/fixtures/good.html', function(err, code, map) { | ||
expect(err).not.to.exist; | ||
expect(code).not.to.contain('import {'); | ||
expect(code).not.to.contain('} from \'svelte/shared.js\''); | ||
}) | ||
); | ||
it('should configure shared=true', | ||
testLoader('test/fixtures/good.html', function(err, code, map) { | ||
expect(err).not.to.exist; | ||
expect(code).to.contain('import {'); | ||
expect(code).to.contain('} from \'svelte/shared.js\''); | ||
}, { shared: true }) | ||
); | ||
}); | ||
}); | ||
@@ -189,0 +213,0 @@ |
Sorry, the diff of this file is not supported yet
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
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
19687
25
299
1