0.3.0 • Published 7 years ago

intern-systemjs-loader v0.3.0

Weekly downloads
1
License
ISC
Repository
github
Last release
7 years ago

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 not all reporters/configuration options have been thoroughly tested.

Installing and configuration

Install with NPM:

npm install intern-systemjs-loader

Then, modify your Intern configuration to use the loader:

    loaders: {
      'host-node': require.nodeRequire && require.nodeRequire.resolve('intern-systemjs-loader'),
      'host-browser': 'node_modules/intern-systemjs-loader/main.js'
    }

Using Babel to transform ES modules and JSX code

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

    loaderOptions: {
        transpiler: 'plugin-babel',
    },

    excludeInstrumentation: true

Disabling instrumentation of any ES modules is necessary as Istanbul fails hard if it tries to cover them.

Several modules, including plugin-babel, react and fbjs are pre-mapped to their respective locations within node_modules. This is done for convenience, they can be overridden using the map and packages configuration options.

0.3.0

7 years ago

0.2.1

8 years ago

0.2.0

8 years ago

0.1.0

8 years ago

0.0.4

8 years ago

0.0.3

8 years ago

0.0.2

8 years ago

0.0.1

8 years ago

0.0.1-wip

8 years ago