Skip to content

Commit 9bfaedb

Browse files
committed
fix: fix exposedModule name
1 parent b704615 commit 9bfaedb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/webpack.config.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { existsSync, readdirSync } from 'fs';
2+
import { camelCase, upperFirst } from 'lodash-es';
23
import { env } from 'process';
34
import webpack from 'webpack';
4-
import { camelCase, capitalize } from 'lodash-es';
55
import { readJsonFromVisual } from './utils.js';
66

77
const ngJson = readJsonFromVisual('angular.json');
@@ -20,7 +20,7 @@ getDirectories(sourceRoot).forEach(dir => {
2020
const manifestPath = `${sourceRoot}/${dir}/manifest.json`;
2121
if (existsSync(manifestPath)) {
2222
const manifestJson = readJsonFromVisual(manifestPath);
23-
const exposedModule = capitalize(camelCase(manifestJson.name));
23+
const exposedModule = upperFirst(camelCase(manifestJson.name));
2424
exposes[exposedModule] = `./${sourceRoot}/${dir}`;
2525
}
2626
});

0 commit comments

Comments
 (0)