Used for loading Node binary files.
npm install systemjs-plugin-node-binary
Create a map configuration to the plugin:
System.config({
map: {
'node-binary': 'node_modules/systemjs-plugin-node-binary/node-binary.js'
}
})
jspm install node-binary
System.config({
packages: {
app: {
meta: {
'*.node': {
loader: 'node-binary'
}
}
}
}
})
System.config({
meta: {
'path/to/binary.node': {
loader: 'node-binary'
}
}
});
Builds are not supported - it will always be assumed that the binary load is a dynamic dependency and an exclude in any build.