3ad55721d1
**Reasons for making this change:**
- it is contained within `node_modules/`, which is already ignored
- the previous versions, which were not in `node_modules/`, did not have
a period at the beginning of the filename
Links to documentation supporting these rule changes:
**Changelog with proof here:**
|
||
---|---|---|
.. | ||
pages | ||
.gitignore | ||
next.config.js | ||
package.json | ||
README.md | ||
vercel.svg |
Turbopack + Loaders
Turbopack supports a subset of webpack's loader API, allowing you to use some webpack loaders to transform code in Turbopack. This example shows you how to configure Next.js to use webpack loaders when running with next --turbo
.
Install the dependencies and start the development server.
npm install
npm run dev
or
yarn
yarn dev
or
pnpm install
pnpm dev
Deploy your own
Deploy the example using Vercel or preview live with StackBlitz
How to use
Execute create-next-app
with npm, Yarn, or pnpm to bootstrap the example:
npx create-next-app --example with-turbopack-loaders with-turbopack-loaders-app
yarn create next-app --example with-turbopack-loaders with-turbopack-loaders-app
pnpm create next-app --example with-turbopack-loaders with-turbopack-loaders-app
Deploy it to the cloud with Vercel (Documentation).