
Research
/Security News
9 Malicious NuGet Packages Deliver Time-Delayed Destructive Payloads
Socket researchers discovered nine malicious NuGet packages that use time-delayed payloads to crash applications and corrupt industrial control systems.
rollup-plugin-vue-template-compiler
Advanced tools
Rollup plugin to compile Vue.js 2.0 templates.
npm i rollup-plugin-vue-template-compiler --save-dev
import vueTemplateCompiler from 'rollup-plugin-vue-template-compiler';
import buble from 'rollup-plugin-buble';
export default {
entry: 'index.js',
dest: 'dist/app.js',
format: 'umd',
plugins: [
vueTemplateCompiler({
include: '**/*.html'
}),
buble()
]
};
import template from './template.html'
template will be an object
{
render: Function,
staticRenderFns: Array<Function>
}
Set render and staticRenderFns properties on a component e.g:
// manually
import template from './template.html'
export const myComponent = {
render: template.render,
staticRenderFns: template.staticRenderFns,
mounted () {}
}
// mixin
import template from './template.html'
export const myComponent = {
mixins: [template],
mounted () {}
}
// stage2 object spread
import template from './template.html'
export const myComponent = {
...template,
mounted () {}
}
FAQs
Rollup plugin to compile Vue.js 2.0 templates.
We found that rollup-plugin-vue-template-compiler demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Research
/Security News
Socket researchers discovered nine malicious NuGet packages that use time-delayed payloads to crash applications and corrupt industrial control systems.

Security News
Socket CTO Ahmad Nassri discusses why supply chain attacks now target developer machines and what AI means for the future of enterprise security.

Security News
Learn the essential steps every developer should take to stay secure on npm and reduce exposure to supply chain attacks.