UNPKG

498 BJavaScriptView Raw
1const create = require('./lib/entry/mainAny').create
2const typedDependencies = require('./lib/entry/dependenciesAny.generated').typedDependencies
3
4console.warn('Warning: ' +
5 'The file "mathjs/core.js" is deprecated since v6.0.0. ' +
6 'Please use the root "mathjs" instead')
7
8exports.create = function createLegacy (config) {
9 // TODO: wrap the function create in a warnOnce message
10
11 const factories = {
12 createTyped: typedDependencies.createTyped
13 }
14
15 return create(factories, config)
16}