Closed thom4parisot closed 8 years ago
It is a BC break as a string can be expected and the module gets loaded dynamically.
I'd rather stick to:
const slayer = require('slayer'); const defaultAlgorithm = require('slayer/algorithms/default'); slayer.use(defaultAlgorithm);
And obviously, having it configured by default to avoid the hassle of manually registering it.
It is a BC break as a string can be expected and the module gets loaded dynamically.
I'd rather stick to:
And obviously, having it configured by default to avoid the hassle of manually registering it.