From ffe98e17100da4ff8d1dda213a43f6d441f8d97d Mon Sep 17 00:00:00 2001 From: pqcqaq <905739777@qq.com> Date: Sun, 8 Dec 2024 00:22:45 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E7=A4=BA=E4=BE=8B=E6=A8=A1?= =?UTF-8?q?=E6=9D=BF=E4=B8=AD=E7=9A=84compiler.js?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- template/configuration/compiler.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/template/configuration/compiler.js b/template/configuration/compiler.js index b3f4d3b..14da6d4 100644 --- a/template/configuration/compiler.js +++ b/template/configuration/compiler.js @@ -1,5 +1,6 @@ // import { CompilerConfiguration } from 'oak-domain/lib/types/Configuration'; const path = require('path'); +const { CreateComilerConfig } = require('@xuchangzju/oak-cli/lib/createConfig') const oakGeneralBusinessPath = path.resolve( 'node_modules/oak-general-business/es' ); @@ -7,12 +8,11 @@ const oakFrontendBasePath = path.resolve( 'node_modules/oak-frontend-base/es' ); - const oakPayBusinessPath = path.resolve( 'node_modules/oak-pay-business/es' ); -module.exports = { +module.exports = CreateComilerConfig({ webpack: { extraOakModules: [/oak-pay-business/, /oak-general-business/], resolve: { @@ -23,4 +23,4 @@ module.exports = { } } } -}; +});