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:
Iku-tursoandJanne Savolainen committed 2023-05-03 09:31:24 +03:00
1 parent f2f6cc500c
commit 9a4b02becb
24 files changed
+230 -190

No files matched your search

@@ -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 };