1 |
|
2 | export function createDeprecatedImport () {
|
3 | return function deprecatedImport () {
|
4 | throw new Error('The global import function is not available anymore in v6.0.0. \n' +
|
5 | 'Please create a mathjs instance if you want to import functions. \n' +
|
6 | 'Example:\n' +
|
7 | '\n' +
|
8 | ' import { create, all } from \'mathjs\';\n' +
|
9 | ' const mathjs = create(all);\n' +
|
10 | ' mathjs.import(...);\n')
|
11 | }
|
12 | }
|