@@ -81,44 +81,46 @@ module.exports = createConfig({
8181 */
8282 formats: [' cjs' , ' es' ],
8383
84- /**
85- * defines default configurations for all build formats
86- */
87- defaults: {
88- src: ' ./src' ,
84+ // defines default configurations for all build formats
8985
90- entryFile: ' ./index' ,
86+ // default src directory
87+ src: ' ./src' ,
9188
92- /**
93- * allowed file extensions
94- */
95- extensions: [' .js' , ' .ts' , ' .jsx' , ' .tsx' ],
89+ // default entry file
90+ entryFile: ' ./index' ,
9691
97- /**
98- * boolean indicating if the interop rollup setting should be enabled
99- */
100- interop : true ,
92+ /**
93+ * default allowed file extensions
94+ */
95+ extensions : [ ' .js ' , ' .ts ' , ' .jsx ' , ' .tsx ' ] ,
10196
102- /**
103- * boolean indicating if sourcemap should be generated, can be true, false, or 'inline'
104- */
105- sourcemap : true ,
97+ /**
98+ * boolean indicating if the interop rollup setting should be enabled
99+ */
100+ interop : true ,
106101
107- /**
108- * applies to umd and iife builds
109- */
110- globals : {} ,
102+ /**
103+ * boolean indicating if sourcemap should be generated, can be true, false, or 'inline'
104+ */
105+ sourcemap : true ,
111106
112- babelPlugins: [],
107+ /**
108+ * applies to umd and iife builds
109+ */
110+ globals: {},
113111
114- babelPresets : [],
112+ babelPlugins : [],
115113
116- exclude : [],
114+ babelPresets : [],
117115
118- include : [],
116+ exclude : [],
119117
120- plugins: [],
121- },
118+ include: [],
119+
120+ /**
121+ * rollup plugins to add for all builds
122+ */
123+ plugins: [],
122124
123125 /**
124126 * cjs build config
@@ -146,9 +148,14 @@ module.exports = createConfig({
146148 [' production' , ' unminified' ],
147149 ],
148150
149- minifiedSuffix: ' min' , // set to false if you do not want .[min] prefix in minified builds,
150- prodBuildSuffix: ' production' , // set to false or empty string if you do not want .[production] suffix in output files,
151- devBuildSuffix: ' development' , // set to false or empty string if you do not want .[development] suffix in output files
151+ // set to false if you do not want .[min] prefix in minified builds,
152+ minifiedSuffix: ' min' ,
153+
154+ // set to false or empty string if you do not want .production suffix in prod build ouputs
155+ prodBuildSuffix: ' production' ,
156+
157+ // set to false or empty string if you do not want .development suffix in prod build ouputs
158+ devBuildSuffix: ' development' ,
152159 },
153160
154161 /**
0 commit comments