Skip to content

Commit

Permalink
Fix custom loading example (rename to .mjs), see #2447, #2144
Browse files Browse the repository at this point in the history
  • Loading branch information
josdejong committed Aug 18, 2022
1 parent c62fa8f commit b18f4d4
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import {
addDependencies,
divideDependencies,
formatDependencies
} from '../..'
} from '../../lib/esm/index.js'

const config = {
// optionally, you can specify configuration
Expand All @@ -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
//

0 comments on commit b18f4d4

Please sign in to comment.