Socket
Socket
Sign inDemoInstall

intern-systemjs-loader

Package Overview
Dependencies
2
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

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
0
decreased by-100%
Maintainers
1
Created
Weekly downloads
 

Readme

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

Last updated on 07 May 2016

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc