File tree Expand file tree Collapse file tree 1 file changed +28
-0
lines changed Expand file tree Collapse file tree 1 file changed +28
-0
lines changed Original file line number Diff line number Diff line change 1+ // TODO: Swich out the sucrase hack for the real, currently-commented-out code once we switch sucrase builds on.
2+
3+ // export default ['esm', 'cjs'].map(format => ({
4+ export default [ 'esm' , 'cjs' ] . map ( format => {
5+ const config = {
6+ input : '../../rollup/jsPolyfills/index.js' ,
7+ output : {
8+ // preserveModules: true,
9+ dir : `jsPolyfills/${ format } ` ,
10+ format,
11+ strict : false ,
12+ } ,
13+ } ;
14+ // }));
15+
16+ // temporary hack for testing sucrase bundles before we switch over
17+ if ( ! process . version . startsWith ( 'v8' ) ) {
18+ // eslint-disable-next-line no-console
19+ console . log ( 'Doing normal preserveModules in polyfill config' ) ;
20+ config . output . preserveModules = true ;
21+ } else {
22+ // eslint-disable-next-line no-console
23+ console . log ( 'Doing node 8 preserveModules in polyfill config' ) ;
24+ config . preserveModules = true ;
25+ }
26+
27+ return config ;
28+ } ) ;
You can’t perform that action at this time.
0 commit comments