UNPKG

mathjs

Version:

Math.js is an extensive math library for JavaScript and Node.js. It features a flexible expression parser with support for symbolic computation, comes with a large set of built-in functions and constants, and offers an integrated solution to work with dif

11 lines (8 loc) 426 B
export function deprecatedIndexFileError (filename) { const message = `The index file ${filename} is deprecated since v6.0.0. ` + 'Please import and load individual files from the main index file instead, like: \n' + ' \n' + ' import { create, addDependencies, multiplyDependencies } from \'mathjs\' \n' + ' const math = create({ addDependencies, multiplyDependencies }) \n' throw new Error(message) }