JSPM

  • Created
  • Published
  • Downloads 82179
  • Score
    100M100P100Q148734F
  • License MIT

A webpack loader for svelte

Package Exports

  • svelte-loader
  • svelte-loader/package.json

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (svelte-loader) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

svelte-loader

Build Status

A webpack loader for svelte.

Usage

Configure inside your webpack.config.js:

  ...
  module: {
    rules: [
      ...
      {
        test: /\.(html|svelte)$/,
        exclude: /node_modules/,
        use: 'svelte-loader'
      }
      ...
    ]
  }
  ...

Checkout example setup.

License

MIT