Skip to content

Commit 8efe639

Browse files
committed
fixes integration with rollup
Signed-off-by: Oleh Dokuka <[email protected]>
1 parent c539b3a commit 8efe639

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

scripts/build.js

+8-6
Original file line numberDiff line numberDiff line change
@@ -181,12 +181,14 @@ function buildHasteRollup(pkg) {
181181
}
182182
},
183183
})
184-
.then((bundle) => {
185-
let code = bundle.generate({
186-
format: 'cjs',
187-
interop: false,
188-
name: packageName,
189-
}).code;
184+
.then((bundle) => bundle.generate({
185+
format: 'cjs',
186+
interop: false,
187+
name: packageName,
188+
}))
189+
.then(rollupOutput => {
190+
let code = rollupOutput.output[0].code;
191+
190192
// Post-rollup transform to rewrite imports between packages
191193
code = babel.transform(code, {
192194
babelrc: false,

0 commit comments

Comments
 (0)