Registry / testing / intern-systemjs-loader

intern-systemjs-loader

JSON →
library0.3.0jsnpmunverified

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.

npm install intern-systemjs-loader
INSTALL
IMPORT
SIG · INTERN-SYSTEMJS-LO
I
intern-systemjs-loader
testingjavascriptv0.3.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

intern-systemjs-loader
import 'intern-systemjs-loader'
const loader = require('intern-systemjs-loader')
This package is a loader for Intern; it is configured via Intern's loaders property, not imported directly.

Configures Intern to use SystemJS as its module loader for both Node and browser environments.

// 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' }
Debug
Known issues
gotchaOnly works with SystemJS, not other loaders.
fix
Ensure you are using SystemJS as your module loader.
affects: >=0.0.0
gotchaNot all reporters/configuration options have been thoroughly tested.
fix
Test your specific configuration and report issues.
affects: >=0.0.0
gotchaMust disable instrumentation for ES modules when using Babel, as Istanbul fails.
fix
Set excludeInstrumentation: true in Intern config.
affects: >=0.0.0
Errors
Common errors & fixes
Error: Cannot find module 'intern-systemjs-loader'
Loader path not correctly resolved or installed.
fix
Ensure npm install intern-systemjs-loader is run and path is correct in Intern config.
Istanbul fails on ES modules
Instrumentation of ES modules is not supported.
fix
Set excludeInstrumentation: true in Intern config.
Upgrade
Version history
0.3.0latest on npm
Audit
Dependencies

No dependency data recorded yet.

Agent activity
4 hits · last 30 days
node
4
Resources
intern-systemjs-loader — npm install intern-systemjs-loader · libregistry