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

vue-loader

Package Overview
Dependencies
Maintainers
1
Versions
304
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vue-loader - npm Package Compare versions

Comparing version 1.1.4 to 1.1.5

18

index.js

@@ -6,8 +6,20 @@ var compiler = require('vue-component-compiler')

module.exports = function(content) {
this.cacheable && this.cacheable()
var cb = this.async()
compiler.compile(content, this.resourcePath, function(err, result) {
var ctx = this
var cb = ctx.async()
ctx.cacheable && ctx.cacheable()
var deps = {}
compiler.on('dependency', addDep)
function addDep (filePath) {
if (!deps[filePath]) {
deps[filePath] = true
ctx.addDependency(filePath)
}
}
compiler.compile(content, ctx.resourcePath, function(err, result) {
if(err) return cb(err)
compiler.removeListener('dependency', addDep)
cb(null, result)
})
}

2

package.json
{
"name": "vue-loader",
"version": "1.1.4",
"version": "1.1.5",
"description": "Webpack loader for single-file Vue components",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -50,3 +50,3 @@ # vue-loader

And you can import using the `src` attribute (note you'll have to save the vue file to trigger a rebuild since the imported file is not tracked by Browserify as a dependency):
And you can import using the `src` attribute (note you'll have to save the vue file to trigger a rebuild since the imported file is not tracked by Webpack as a dependency):

@@ -53,0 +53,0 @@ ``` html

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