Skip to content

Commit 37c570e

Browse files
committed
fix(next-intlayer): streamline getPruneConfig by removing unused baseDir and change required by ESMxCJSRequire
1 parent 8ceec29 commit 37c570e

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

packages/next-intlayer/src/server/withIntlayer.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,7 @@ const isSwcPluginAvailable = (() => {
3232
const getPruneConfig = (
3333
intlayerConfig: IntlayerConfig
3434
): Partial<NextConfig> => {
35-
const { contentDir, dictionariesDir, baseDir, mainDir } =
36-
intlayerConfig.content;
35+
const { contentDir, dictionariesDir, mainDir } = intlayerConfig.content;
3736

3837
const isProduction = process.env.NODE_ENV === 'production';
3938

@@ -49,7 +48,7 @@ const getPruneConfig = (
4948
experimental: {
5049
swcPlugins: [
5150
[
52-
require.resolve('@intlayer/swc'),
51+
ESMxCJSRequire.resolve('@intlayer/swc'),
5352
{
5453
dictionaries_dir: dictionariesDir,
5554
dictionaries_entry_path: dictionariesPath,

0 commit comments

Comments
 (0)