Security News
JSR Working Group Kicks Off with Ambitious Roadmap and Plans for Open Governance
At its inaugural meeting, the JSR Working Group outlined plans for an open governance model and a roadmap to enhance JavaScript package management.
rollup-plugin-svelte
Advanced tools
Compile Svelte components.
npm install --save-dev rollup-plugin-svelte
// rollup.config.js
import svelte from 'rollup-plugin-svelte';
export default {
entry: 'src/main.js',
dest: 'bundle.js',
format: 'iife',
plugins: [
svelte({
// By default, all .html and .svelte files are compiled
extensions: [ '.my-custom-extension' ],
// You can restrict which files are compiled
// using `include` and `exclude`
include: 'src/components/**/*.html',
// By default, the client-side compiler is used. You
// can also use the server-side rendering compiler
generate: 'ssr',
// If you're doing server-side rendering, you may want
// to prevent the client-side compiler from duplicating CSS
css: false
})
]
}
MIT
FAQs
Compile Svelte components with Rollup
The npm package rollup-plugin-svelte receives a total of 70,500 weekly downloads. As such, rollup-plugin-svelte popularity was classified as popular.
We found that rollup-plugin-svelte demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 6 open source maintainers 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.
Security News
At its inaugural meeting, the JSR Working Group outlined plans for an open governance model and a roadmap to enhance JavaScript package management.
Security News
Research
An advanced npm supply chain attack is leveraging Ethereum smart contracts for decentralized, persistent malware control, evading traditional defenses.
Security News
Research
Attackers are impersonating Sindre Sorhus on npm with a fake 'chalk-node' package containing a malicious backdoor to compromise developers' projects.