Skip to content

fix build issue and tests#333

Open
gitjeff05 wants to merge 1 commit into
topojson:masterfrom
gitjeff05:fix-tests
Open

fix build issue and tests#333
gitjeff05 wants to merge 1 commit into
topojson:masterfrom
gitjeff05:fix-tests

Conversation

@gitjeff05

@gitjeff05 gitjeff05 commented Oct 4, 2019

Copy link
Copy Markdown

I pulled this down and noticed that rollup was quite outdated and tests were not passing. Upon further investigation I found that the rollup.node.js script being called in yarn pretest was busted and so I fixed that first. Then tests passed.

I created a production build with rollup --config and there were some minor differences with version 3.0.2. Mainly with how functions are declared (i.e., function expressions vs declarations) This package could probably use some more tests.

Comment thread rollup.node.js
format: "cjs"
});
}).then(function(bundle) {
var code = bundle.code;

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In the newer version of rollup, bundle is an object with member output of type Array. Looking at the new docs for rollup, I decided to go from their example:

https://rollupjs.org/guide/en/#rolluprollup

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant