File tree 1 file changed +8
-0
lines changed
1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -52,6 +52,11 @@ const rollupOutputs = [
52
52
dir : tmpDir ,
53
53
entryFileNames : '[name].[format].js' ,
54
54
format : 'umd' ,
55
+ // For ".cjs" input files, Rollup assumes there are exports
56
+ // (it doesn't look for module.exports). When combined with the UMD
57
+ // output format, this means Rollup requires a name for UMD's
58
+ // global variable. There are no exports in our input, so this
59
+ // is merely storing an unused and empty object.
55
60
name : 'UNUSED'
56
61
}
57
62
] ;
@@ -108,6 +113,9 @@ await (async function main () {
108
113
console . log ( '... built ' + fileName ) ;
109
114
110
115
if ( fileName . endsWith ( '.cjs.js' ) ) {
116
+ // Skip the CJS output format when testing in browsers
117
+ // (depends on require+module.exports). These are
118
+ // tested in Node.js by /demos/bundlers.js instead.
111
119
continue ;
112
120
}
113
121
You can’t perform that action at this time.
0 commit comments