Skip to content

Commit 7e0cd04

Browse files
committed
feat: support angular-package-format out of box
1 parent 39ab8b1 commit 7e0cd04

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

src/index.ts

+14-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,20 @@ const defaultExtensions = [
4040
'.node',
4141
]
4242

43-
const defaultMainFields = ['types', 'typings', 'module', 'jsnext:main', 'main']
43+
const defaultMainFields = [
44+
'types',
45+
'typings',
46+
'module',
47+
'jsnext:main',
48+
49+
// https://angular.io/guide/angular-package-format
50+
'esm2020',
51+
'es2020',
52+
'fesm2020',
53+
'fesm2015',
54+
55+
'main',
56+
]
4457

4558
export const interfaceVersion = 2
4659

0 commit comments

Comments
 (0)