const create = require('./lib/entry/mainInstance').create const typedDependencies = require('./lib/entry/dependenciesAny.generated').typedDependencies console.warn('Warning: ' + 'The file "mathjs/core.js" is deprecated since v6.0.0. ' + 'Please use the root "mathjs" instead') exports.create = function createLegacy (config) { // TODO: wrap the function create in a warnOnce message const factories = { createTyped: typedDependencies.createTyped } return create(factories, config) }