From 851e83c082aeb1b8f816a9233eaf210b59173c81 Mon Sep 17 00:00:00 2001 From: Jolie Rabideau Date: Thu, 9 Nov 2023 12:45:54 -0500 Subject: [PATCH] update import from papi-backend, and add papi-frontend/react to webpack externals --- src/main.ts | 4 +--- webpack/webpack.config.base.ts | 1 + 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/main.ts b/src/main.ts index 2a9499c..5b24402 100644 --- a/src/main.ts +++ b/src/main.ts @@ -1,6 +1,4 @@ -import papi from 'papi-backend'; - -const { logger } = papi; +import { logger } from 'papi-backend'; export async function activate() { logger.info('Extension template is activating!'); diff --git a/webpack/webpack.config.base.ts b/webpack/webpack.config.base.ts index 68122da..3e4e06a 100644 --- a/webpack/webpack.config.base.ts +++ b/webpack/webpack.config.base.ts @@ -44,6 +44,7 @@ const configBase: webpack.Configuration = { 'react-dom', 'react-dom/client', 'papi-frontend', + 'papi-frontend/react', 'papi-backend', '@sillsdev/scripture', ],