Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve build system #35

Merged
merged 4 commits into from
Aug 17, 2018
Merged

Improve build system #35

merged 4 commits into from
Aug 17, 2018

Conversation

k105la
Copy link
Contributor

@k105la k105la commented Aug 16, 2018

No description provided.

package.json Outdated
"scripts": {
"start": "rollup -cw",
"build": "rollup -c",
"precommit": "npm run build && pretty-quick --staged",
"test": "jest"
},
"presets": ["env"],
Copy link
Member

Choose a reason for hiding this comment

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

Do we need this defined twice? Reference: https://github.com/OpenMined/syft.js/blob/master/.babelrc

rollup.config.js Outdated
@@ -2,12 +2,19 @@ import babel from 'rollup-plugin-babel';

export default {
input: 'src/index.js',
output: {
output: [{
file: 'lib/index.js',
name: 'Syft',
format: 'iife',
Copy link
Member

Choose a reason for hiding this comment

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

Is IIFE necessary anymore?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

No its not should be UMD

Copy link
Member

@cereallarceny cereallarceny left a comment

Choose a reason for hiding this comment

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

This all works fine. UMD covers everything via a script tag... ESM allows for ES6 import/export functionality.

@cereallarceny cereallarceny merged commit 7092a62 into OpenMined:master Aug 17, 2018
cereallarceny added a commit that referenced this pull request Oct 13, 2018
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.

2 participants