Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

@nodejs-loaders/svelte

Package Overview
Dependencies
Maintainers
2
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@nodejs-loaders/svelte

Extend node to support svelte via customization hooks.

latest
Source
npmnpm
Version
1.2.0
Version published
Weekly downloads
23
2200%
Maintainers
2
Weekly downloads
 
Created
Source

Nodejs Loaders: Svelte

@node.js loaders logo

npm version unpacked size compatible node version(s)

Usage

$ npm i -D @nodejs-loaders/svelte
$ node --import @nodejs-loaders/svelte main.js

See README.md in the repository's root for more details.

Environments: dev, test

Compatible APIs:

This loader enables importing Svelte files, converting them to a plain javascript object. Svelte is a component framework that compiles to vanilla JavaScript.

It's useful for importing Svelte components in Node.js environments, such as testing or development.

Supported file extensions
  • .svelte

[!WARNING] .svelte.ts and .svelte.js files are not supported. This loader only supports .svelte files. Svelte documentation about theses files.

[!NOTE] Features based on svelte-kit aren't supported yet. Pull requests welcome 🙂

Alternatives

Keywords

customization hooks

FAQs

Package last updated on 08 Nov 2025

Did you know?

Socket

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.

Install

Related posts