2 // Add support for native node modules
4 // We're specifying native_modules in the test because the asset relocator loader generates a
5 // "fake" .node file which is really a cjs file.
6 test: /native_modules[/\\].+\.node$/,
10 test: /\.(m?js|node)$/,
11 parser: { amd: false },
13 loader: '@vercel/webpack-asset-relocator-loader',
15 outputAssetBase: 'native_modules',
21 exclude: /(node_modules|\.webpack)/,