/
opt
/
canhelp
/
node_modules
/
next
/
dist
/
build
/
webpack
/
loaders
/
/opt/canhelp/node_modules/next/dist/build/webpack/loaders
mkdir
upload
Name
Size
Mode
Actions
css-loader/
-
0755
rm
devtool/
-
0755
rm
lightningcss-loader/
-
0755
rm
metadata/
-
0755
rm
next-app-loader/
-
0755
rm
next-edge-app-route-loader/
-
0755
rm
next-edge-ssr-loader/
-
0755
rm
next-flight-loader/
-
0755
rm
next-font-loader/
-
0755
rm
next-image-loader/
-
0755
rm
next-route-loader/
-
0755
rm
next-style-loader/
-
0755
rm
postcss-loader/
-
0755
rm
resolve-url-loader/
-
0755
rm
empty-loader.d.ts
156
0644
edit
dl
rm
empty-loader.js
320
0644
edit
dl
rm
empty-loader.js.map
388
0644
edit
dl
rm
error-loader.d.ts
156
0644
edit
dl
rm
error-loader.js
1428
0644
edit
dl
rm
error-loader.js.map
1674
0644
edit
dl
rm
get-module-build-info.d.ts
1495
0644
edit
dl
rm
get-module-build-info.js
358
0644
edit
dl
rm
get-module-build-info.js.map
1937
0644
edit
dl
rm
modularize-import-loader.d.ts
639
0644
edit
dl
rm
modularize-import-loader.js
1255
0644
edit
dl
rm
modularize-import-loader.js.map
1720
0644
edit
dl
rm
next-barrel-loader.d.ts
3140
0644
edit
dl
rm
next-barrel-loader.js
10345
0644
edit
dl
rm
next-barrel-loader.js.map
15505
0644
edit
dl
rm
next-client-pages-loader.d.ts
186
0644
edit
dl
rm
next-client-pages-loader.js
1238
0644
edit
dl
rm
next-client-pages-loader.js.map
1906
0644
edit
dl
rm
next-edge-function-loader.d.ts
370
0644
edit
dl
rm
next-edge-function-loader.js
1908
0644
edit
dl
rm
next-edge-function-loader.js.map
3206
0644
edit
dl
rm
next-error-browser-binary-loader.d.ts
161
0644
edit
dl
rm
next-error-browser-binary-loader.js
714
0644
edit
dl
rm
next-error-browser-binary-loader.js.map
929
0644
edit
dl
rm
next-flight-action-entry-loader.d.ts
476
0644
edit
dl
rm
next-flight-action-entry-loader.js
972
0644
edit
dl
rm
next-flight-action-entry-loader.js.map
1955
0644
edit
dl
rm
next-flight-client-entry-loader.d.ts
624
0644
edit
dl
rm
next-flight-client-entry-loader.js
1978
0644
edit
dl
rm
next-flight-client-entry-loader.js.map
4102
0644
edit
dl
rm
next-flight-client-module-loader.d.ts
182
0644
edit
dl
rm
next-flight-client-module-loader.js
2235
0644
edit
dl
rm
next-flight-client-module-loader.js.map
3424
0644
edit
dl
rm
next-flight-css-loader.d.ts
420
0644
edit
dl
rm
next-flight-css-loader.js
2080
0644
edit
dl
rm
next-flight-css-loader.js.map
3060
0644
edit
dl
rm
next-flight-server-reference-proxy-loader.d.ts
237
0644
edit
dl
rm
next-flight-server-reference-proxy-loader.js
1334
0644
edit
dl
rm
next-flight-server-reference-proxy-loader.js.map
1883
0644
edit
dl
rm
next-invalid-import-error-loader.d.ts
248
0644
edit
dl
rm
next-invalid-import-error-loader.js
568
0644
edit
dl
rm
next-invalid-import-error-loader.js.map
733
0644
edit
dl
rm
next-metadata-image-loader.d.ts
506
0644
edit
dl
rm
next-metadata-image-loader.js
6313
0644
edit
dl
rm
next-metadata-image-loader.js.map
9698
0644
edit
dl
rm
next-metadata-route-loader.d.ts
398
0644
edit
dl
rm
next-metadata-route-loader.js
9423
0644
edit
dl
rm
next-metadata-route-loader.js.map
13704
0644
edit
dl
rm
next-middleware-asset-loader.d.ts
115
0644
edit
dl
rm
next-middleware-asset-loader.js
1332
0644
edit
dl
rm
next-middleware-asset-loader.js.map
1531
0644
edit
dl
rm
next-middleware-loader.d.ts
530
0644
edit
dl
rm
next-middleware-loader.js
2022
0644
edit
dl
rm
next-middleware-loader.js.map
3572
0644
edit
dl
rm
next-middleware-wasm-loader.d.ts
114
0644
edit
dl
rm
next-middleware-wasm-loader.js
1272
0644
edit
dl
rm
next-middleware-wasm-loader.js.map
1489
0644
edit
dl
rm
next-root-params-loader.d.ts
278
0644
edit
dl
rm
next-root-params-loader.js
6630
0644
edit
dl
rm
next-root-params-loader.js.map
8533
0644
edit
dl
rm
next-swc-loader.d.ts
866
0644
edit
dl
rm
next-swc-loader.js
11042
0644
edit
dl
rm
next-swc-loader.js.map
14997
0644
edit
dl
rm
utils.d.ts
589
0644
edit
dl
rm
utils.js
3771
0644
edit
dl
rm
utils.js.map
5887
0644
edit
dl
rm
Edit:
/opt/canhelp/node_modules/next/dist/build/webpack/loaders/next-barrel-loader.d.ts
(3140B)
/** * ## Barrel Optimizations * * This loader is used to optimize the imports of "barrel" files that have many * re-exports. Currently, both Node.js and Webpack have to enter all of these * submodules even if we only need a few of them. * * For example, say a file `foo.js` with the following contents: * * export { a } from './a' * export { b } from './b' * export { c } from './c' * ... * * If the user imports `a` only, this loader will accept the `names` option to * be `['a']`. Then, it request the "__barrel_transform__" SWC transform to load * `foo.js` and receive the following output: * * export const __next_private_export_map__ = '[["a","./a","a"],["b","./b","b"],["c","./c","c"],...]' * * format: '["<imported identifier>", "<import path>", "<exported name>"]' * e.g.: import { a as b } from './module-a' => '["b", "./module-a", "a"]' * * The export map, generated by SWC, is a JSON that represents the exports of * that module, their original file, and their original name (since you can do * `export { a as b }`). * * Then, this loader can safely remove all the exports that are not needed and * re-export the ones from `names`: * * export { a } from './a' * * That's the basic situation and also the happy path. * * * * ## Wildcard Exports * * For wildcard exports (e.g. `export * from './a'`), it becomes a bit more complicated. * Say `foo.js` with the following contents: * * export * from './a' * export * from './b' * export * from './c' * ... * * If the user imports `bar` from it, SWC can never know which files are going to be * exporting `bar`. So, we have to keep all the wildcard exports and do the same * process recursively. This loader will return the following output: * * export * from '__barrel_optimize__?names=bar&wildcard!=!./a' * export * from '__barrel_optimize__?names=bar&wildcard!=!./b' * export * from '__barrel_optimize__?names=bar&wildcard!=!./c' * ... * * The "!=!" tells Webpack to use the same loader to process './a', './b', and './c'. * After the recursive process, the "inner loaders" will either return an empty string * or: * * export * from './target' * * Where `target` is the file that exports `bar`. * * * * ## Non-Barrel Files * * If the file is not a barrel, we can't apply any optimizations. That's because * we can't easily remove things from the file. For example, say `foo.js` with: * * const v = 1 * export function b () { * return v * } * * If the user imports `b` only, we can't remove the `const v = 1` even though * the file is side-effect free. In these caes, this loader will simply re-export * `foo.js`: * * export * from './foo' * * Besides these cases, this loader also carefully handles the module cache so * SWC won't analyze the same file twice, and no instance of the same file will * be accidentally created as different instances. */ import type webpack from 'webpack'; declare const NextBarrelLoader: (this: webpack.LoaderContext<{ names: string[]; swcCacheDir: string; }>) => Promise<void>; export default NextBarrelLoader;
Save
cmd:
run