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

@vaishnavsm/snowpack-svelte-conf

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@vaishnavsm/snowpack-svelte-conf

A simplified snowpack configuration for svelte without jest

  • 1.0.0
  • latest
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

Svelte Configuration For Snowpack without Jest

The official svelte configuration (app-scripts-svelte) includes jest by default. Unfortunately, jest is using packages which have been depricated. This is the same config, but modified to remove the need for jest.

Note on using Typescript

The easiest way is probably to use the snowpack-template-svelte-ts git repo, which includes this package, and does the below configuration.

npx degit vaishnavsm/snowpack-template-svelte-ts svelte-ts-app

Generally, in order to use typescript properly with Svelte,

  1. Install the typescript and svelte-preprocess packages as dev dependencies
     yarn add --dev svelte-preprocess typescript
     npm i -D svelte-preprocess typescript
    
  2. Add a file called svelte.config.js and export a preprocess property as an instance of svelte-preprocess.
     const preprocess = require('svelte-preprocess')
    
     module.exports = {
       preprocess: preprocess()
     }
    

Keywords

FAQs

Package last updated on 27 Jul 2020

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

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