mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
chore: Consolidate infrastructure of webpack to ts to make it scriptable
Co-authored-by: Janne Savolainen <janne.savolainen@live.fi> Signed-off-by: Iku-turso <mikko.aspiala@gmail.com> Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
This commit is contained in:
1 parent
f2f6cc500c
commit
9a4b02becb
24 files changed
+230
-190
No files matched your search
File renamed without changes.
+1
-3
@@ -1,9 +1,7 @@
|
||||
const getDependencyName = (requireString) => {
|
||||
export const getDependencyName = (requireString: string) => {
|
||||
const [a, b] = requireString.split("/");
|
||||
|
||||
const scoped = a.startsWith("@");
|
||||
|
||||
return scoped ? `${a}/${b}` : a;
|
||||
};
|
||||
|
||||
module.exports = { getDependencyName };
|
||||
Reference in new issue
Block a user