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

@morgul/snowpack-plugin-vue2

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@morgul/snowpack-plugin-vue2 - npm Package Compare versions

Comparing version 0.1.0 to 0.2.0

9

compiler/index.js

@@ -25,2 +25,11 @@ // ---------------------------------------------------------------------------------------------------------------------

// Remove the obnoxious comment newlines in the generated code
descriptor.script.content = descriptor.script.content.replace(/\/\/\n/g, '');
// Support using `Vue.extends()`. Code adapted from:
// https://github.com/vuejs/vue-loader/blob/master/lib/runtime/componentNormalizer.js#L17-L20
descriptor.script.content = descriptor.script.content.replace('export default ', 'var scriptExports = ');
descriptor.script.content += ';\nvar options = typeof scriptExports === \'function\' ? scriptExports.options : scriptExports;\n';
descriptor.script.content += 'export default options;'
return {

@@ -27,0 +36,0 @@ descriptor,

2

package.json
{
"name": "@morgul/snowpack-plugin-vue2",
"version": "0.1.0",
"version": "0.2.0",
"description": "A snowpack vue2 compiler based on `@snowpack/plugin-vue`.",

@@ -5,0 +5,0 @@ "main": "plugin/plugin.js",

@@ -17,3 +17,3 @@ # Snowpack Vue 2 Plugin

```bash
$ npm install -D snowpack-plugin-vue2
$ npm install -D @morgul/snowpack-plugin-vue2
```

@@ -23,3 +23,3 @@

```bash
$ yarn add -D snowpack-plugin-vue2
$ yarn add -D @morgul/snowpack-plugin-vue2
```

@@ -33,3 +33,3 @@

"plugins": [
"snowpack-plugin-vue2"
"@morgul/snowpack-plugin-vue2"
]

@@ -36,0 +36,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