From 1185edb1f93c366b1a26271c91b22a7431627fc0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9E=97=E4=B8=80=E4=BA=8C?= Date: Mon, 25 Oct 2021 13:06:07 +0800 Subject: [PATCH] Update webpack.main.config.js --- webpack.main.config.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/webpack.main.config.js b/webpack.main.config.js index 8b88a044..77122ff7 100644 --- a/webpack.main.config.js +++ b/webpack.main.config.js @@ -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, }, }, },