mirror of
https://github.com/vercel/next.js.git
synced 2026-09-20 02:25:18 +08:00
75bbf00a8f
Moves font related types to `next/font` so they can be reused in font loaders. Adds an argument to font loaders, the relative path from the app root to the module consuming the loader. Needed for resolving local files relative to the module calling it. Also used to improve error message. Adds `@next/font/local` font loader. Similar to `@next/font/google` but used to host locally downloaded font files.
2 lines
49 B
JavaScript
2 lines
49 B
JavaScript
module.exports = require('../dist/local/loader')
|