3d40cb01ab
### What? * allow to apply existing pipeline * change webpack loader key to glob for more flexibility * add test cases * add special error message when using the old config syntax Old config: ```js experimental: { turbo: { loaders: { ".mdx": ["mdx-loader"] } } } ``` New config ``` js experimental: { turbo: { rules: { // key is a glob now // normal syntax will treat the result as ecmascript code "*.mdx": ["mdx-loader"], // glob allows more advanced matching "./images/**/*.png": { loaders: ["image-optimize-loader"], // result of loader will be handled in other steps // under the same name/path (here .png) // This will use the existing .png pipeline (static asset) // It might also use other rules matching .png. as: "*" }, "*.generate-image.js": { loaders: ["image-generation-loader"], // It also possible to pass this under a different name // into the pipeline. Here it will treat the result as png image as: "*.png" } } } } ``` ### Why? More flexibility and allowing to use the builtin module handling over non-js types. fixes WEB-1009 ### Turbopack changes * https://github.com/vercel/turbo/pull/4955 <!-- OJ Kwon - refactor(turbopack-ecmascript): deprecate enable_emotion, enable_styled* --> * https://github.com/vercel/turbo/pull/4880 <!-- Tobias Koppers - refactor webpack loader execution --> --------- Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
42 lines
1.2 KiB
Text
42 lines
1.2 KiB
Text
# Build artifacts
|
|
.next/
|
|
.turbo/
|
|
_next/
|
|
__tmp__/
|
|
dist/
|
|
node_modules/
|
|
target/
|
|
compiled/
|
|
|
|
lerna.json
|
|
test-timings.json
|
|
pnpm-lock.yaml
|
|
|
|
packages/next/src/bundles/webpack/packages/*.runtime.js
|
|
packages/next/src/bundles/webpack/packages/lazy-compilation-*.js
|
|
|
|
.github/actions/next-stats-action/.work
|
|
.github/actions/issue-validator/index.mjs
|
|
.github/actions/issue-labeler/lib/index.js
|
|
|
|
packages/next-swc/crates/**/tests/**/output*
|
|
packages/next-swc/crates/core/tests/loader/issue-32553/input.js
|
|
packages/next-swc/crates/next-dev-tests/tests/integration/turbopack/basic/error/input/broken.js
|
|
packages/next-swc/crates/next-dev-tests/tests/integration/next/webpack-loaders/no-options/input/pages/hello.raw.js
|
|
packages/next-swc/crates/next-dev-tests/tests/integration/next/webpack-loaders/no-options/input/raw/hello.js
|
|
packages/next-swc/native/**/*
|
|
|
|
packages/next-codemod/transforms/__testfixtures__/**
|
|
packages/next-codemod/transforms/__tests__/**
|
|
packages/next-codemod/**/*.js
|
|
packages/next-codemod/**/*.d.ts
|
|
|
|
packages/next-env/**/*.d.ts
|
|
|
|
test/**/out/**
|
|
test/development/basic/hmr/components/parse-error.js
|
|
|
|
bench/nested-deps/pages/**/*
|
|
bench/nested-deps/components/**/*
|
|
|
|
**/convex/_generated/**
|