Fix custom loading example (rename to .mjs), see #2447, #2144

This commit is contained in:
Jos de Jong 2022-08-18 14:24:23 +02:00
parent c62fa8f733
commit b18f4d4f54

View File

@ -4,7 +4,7 @@ import {
addDependencies,
divideDependencies,
formatDependencies
} from '../..'
} from '../../lib/esm/index.js'
const config = {
// optionally, you can specify configuration
@ -29,5 +29,5 @@ console.log('d =', format(d)) // outputs "d = 7/9"
// Now, when bundling your application for use in the browser, only the used
// parts of math.js will be bundled. For example to create a bundle using Webpack:
//
// npx webpack custom_loading.js -o custom_loading.bundle.js --mode=production
// npx webpack custom_loading.mjs -o custom_loading.bundle.mjs --mode=production
//