Update webpack.main.config.js

This commit is contained in:
林一二 2021-10-25 13:06:07 +08:00
parent ccf3afce33
commit 1185edb1f9

View file

@ -18,12 +18,12 @@ module.exports = {
...require('./webpack.rules'),
{
test: /\.(m?js|node)$/,
parser: { amd: false },
parser: { amd: true },
use: {
loader: '@vercel/webpack-asset-relocator-loader',
options: {
outputAssetBase: 'native_modules',
// emitDirnameAll: true,
emitDirnameAll: true,
},
},
},