MCPcopy Create free account
hub / github.com/apitable/apitable / apply

Method apply

packages/datasheet/webpack.config.js:19–32  ·  view source on GitHub ↗
(compiler)

Source from the content-addressed store, hash-verified

17
18class WasmChunksFixPlugin {
19 apply(compiler) {
20 compiler.hooks.thisCompilation.tap('WasmChunksFixPlugin', (compilation) => {
21 compilation.hooks.processAssets.tap({ name: 'WasmChunksFixPlugin' }, (assets) =>
22 Object.entries(assets).forEach(([pathname, source]) => {
23 if (!pathname.match(/\.wasm$/)) return;
24 // https://github.com/hasharchives/wasm-ts-esm-in-node-jest-and-nextjs/blob/main/web-app/pages/api/wasm-package-answer.ts
25 // compilation.deleteAsset(pathname);
26 const name = pathname.split('/')[1];
27 const info = compilation.assetsInfo.get(pathname);
28 compilation.emitAsset(name, source, info);
29 }),
30 );
31 });
32 }
33}
34
35// Overrides for css-loader plugin

Callers 15

handleErrorFunction · 0.45
handleErrorFunction · 0.45
handleForStorageMethod · 0.45
handleMetaMethod · 0.45
handleMetaMethod · 0.45
handleMetaMethod · 0.45
handleMetaMethod · 0.45
configureMethod · 0.45
SpanAddTagFunction · 0.45
retryAsyncFunction · 0.45
RetryableFunction · 0.45
handleErrorFunction · 0.45

Calls 3

matchMethod · 0.80
getMethod · 0.65
forEachMethod · 0.45

Tested by

no test coverage detected