Socket
Socket
Sign inDemoInstall

intern-systemjs-loader

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

intern-systemjs-loader

A wrapper for using SystemJS as Intern's loader


Version published
Weekly downloads
12
increased by1100%
Maintainers
1
Weekly downloads
 
Created
Source

intern-systemjs-loader

This package provides a wrapper around the SystemJS module loader so that it can be used with Intern. It hooks the loader to provide some of Intern/Dojo's hybrid plugin-modules. Transpilers such as Babel or TypeScript can be configured to enable writing tests and source files without requiring a pre-compile step.

This loader is a work-in-progress and currently only works in Intern's client environment.

Installing and configuration

Install with NPM:

npm install intern-systemjs-loader

Then, modify your Intern configuration to use the loader:

    loaders: {
      'host-browser': 'node_modules/intern-systemjs-loader/main.js'
    }

Using Babel to transpile ES modules

Simply npm install systemjs-plugin-babel, then specify the loaderOptions configuration in your intern.js file:

    loaderOptions: {
        transpiler: 'plugin-babel',

        map: {
            'plugin-babel': '/node_modules/systemjs-plugin-babel/plugin-babel.js',
            'systemjs-babel-build': '/node_modules/systemjs-plugin-babel/systemjs-babel-browser.js'
        }
    }

Keywords

FAQs

Package last updated on 07 May 2016

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