@@ -13,7 +13,7 @@ function getAuthors(pkg) {
13
13
14
14
const authors = new Set ( )
15
15
if ( contributors && contributors )
16
- contributors . forEach ( contributor => {
16
+ contributors . forEach ( ( contributor ) => {
17
17
authors . add ( contributor . name )
18
18
} )
19
19
if ( author ) authors . add ( author . name )
@@ -46,19 +46,19 @@ const outputConfigs = {
46
46
format : `iife` ,
47
47
} ,
48
48
esm : {
49
- file : pkg . browser ,
49
+ file : pkg . module . replace ( 'bundler' , ' browser' ) ,
50
50
format : `es` ,
51
51
} ,
52
52
}
53
53
54
54
const allFormats = Object . keys ( outputConfigs )
55
55
const packageFormats = allFormats
56
- const packageConfigs = packageFormats . map ( format =>
56
+ const packageConfigs = packageFormats . map ( ( format ) =>
57
57
createConfig ( format , outputConfigs [ format ] )
58
58
)
59
59
60
60
// only add the production ready if we are bundling the options
61
- packageFormats . forEach ( format => {
61
+ packageFormats . forEach ( ( format ) => {
62
62
if ( format === 'cjs' ) {
63
63
packageConfigs . push ( createProductionConfig ( format ) )
64
64
} else if ( format === 'global' ) {
@@ -165,7 +165,7 @@ function createReplacePlugin(
165
165
}
166
166
// allow inline overrides like
167
167
//__RUNTIME_COMPILE__=true yarn build
168
- Object . keys ( replacements ) . forEach ( key => {
168
+ Object . keys ( replacements ) . forEach ( ( key ) => {
169
169
if ( key in process . env ) {
170
170
replacements [ key ] = process . env [ key ]
171
171
}
0 commit comments