mirror of
https://github.com/josdejong/mathjs.git
synced 2025-12-08 19:46:04 +00:00
17 lines
503 B
JavaScript
17 lines
503 B
JavaScript
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)
|
|
}
|