Skip to content

Commit

Permalink
fix: ignoring '@' at package names
Browse files Browse the repository at this point in the history
  • Loading branch information
theKashey committed Sep 17, 2019
1 parent bad35be commit e543ffc
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 6 deletions.
5 changes: 0 additions & 5 deletions server/server.d.ts

This file was deleted.

Empty file added src/macro.ts
Empty file.
2 changes: 1 addition & 1 deletion src/scanners/scanForImports.ts
Expand Up @@ -11,7 +11,7 @@ const RESOLVE_EXTENSIONS = ['.js', '.jsx', '.ts', '.tsx', '.mjs'];

const trimImport = (str: string) => str.replace(/['"]/g, '');

const getImports = getMatchString(`(['"]?[\\w-/.]+['"]?)\\)`, 1);
const getImports = getMatchString(`(['"]?[\\w-/.@]+['"]?)\\)`, 1);
const getComment = getMatchString(/\/\*.*\*\// as any, 0);

const getChunkName = getMatchString('webpackChunkName: "([^"]*)"', 1);
Expand Down

0 comments on commit e543ffc

Please sign in to comment.