intern-systemjs-loader
raw JSON → 0.3.0 verified Fri May 01 auth: no javascript
A wrapper for using SystemJS as Intern's module loader. Current stable version is 0.3.0. This package enables Intern to use SystemJS for loading modules, providing support for transpilers like Babel or TypeScript without a pre-compile step. It is a work-in-progress, with limited testing on reporters and configuration options. Offers pre-mapped modules for plugin-babel, react, and fbjs.
Common errors
error Error: Cannot find module 'intern-systemjs-loader' ↓
cause Loader path not correctly resolved or installed.
fix
Ensure npm install intern-systemjs-loader is run and path is correct in Intern config.
error Istanbul fails on ES modules ↓
cause Instrumentation of ES modules is not supported.
fix
Set excludeInstrumentation: true in Intern config.
Warnings
gotcha Only works with SystemJS, not other loaders. ↓
fix Ensure you are using SystemJS as your module loader.
gotcha Not all reporters/configuration options have been thoroughly tested. ↓
fix Test your specific configuration and report issues.
gotcha Must disable instrumentation for ES modules when using Babel, as Istanbul fails. ↓
fix Set excludeInstrumentation: true in Intern config.
Install
npm install intern-systemjs-loader yarn add intern-systemjs-loader pnpm add intern-systemjs-loader Imports
- intern-systemjs-loader wrong
const loader = require('intern-systemjs-loader')correctimport 'intern-systemjs-loader'
Quickstart
// Install: npm install intern-systemjs-loader
// In intern.js:
loaders: {
'host-node': require.nodeRequire && require.nodeRequire.resolve('intern-systemjs-loader'),
'host-browser': 'node_modules/intern-systemjs-loader/main.js'
}