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.1.0 to 1.2.0

example/public/index.js

4

CHANGELOG.md
# 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,

8

package.json
{
"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

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