We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b704615 commit 9bfaedbCopy full SHA for 9bfaedb
1 file changed
src/webpack.config.ts
@@ -1,7 +1,7 @@
1
import { existsSync, readdirSync } from 'fs';
2
+import { camelCase, upperFirst } from 'lodash-es';
3
import { env } from 'process';
4
import webpack from 'webpack';
-import { camelCase, capitalize } from 'lodash-es';
5
import { readJsonFromVisual } from './utils.js';
6
7
const ngJson = readJsonFromVisual('angular.json');
@@ -20,7 +20,7 @@ getDirectories(sourceRoot).forEach(dir => {
20
const manifestPath = `${sourceRoot}/${dir}/manifest.json`;
21
if (existsSync(manifestPath)) {
22
const manifestJson = readJsonFromVisual(manifestPath);
23
- const exposedModule = capitalize(camelCase(manifestJson.name));
+ const exposedModule = upperFirst(camelCase(manifestJson.name));
24
exposes[exposedModule] = `./${sourceRoot}/${dir}`;
25
}
26
});
0 commit comments