Skip to content

chore: Use TypeScript to bundle UMD directly#2093

Merged
kwonoj merged 3 commits intoReactiveX:masterfrom
Brooooooklyn:bundle-tools
Oct 31, 2016
Merged

chore: Use TypeScript to bundle UMD directly#2093
kwonoj merged 3 commits intoReactiveX:masterfrom
Brooooooklyn:bundle-tools

Conversation

@Brooooooklyn
Copy link
Copy Markdown
Contributor

@Brooooooklyn Brooooooklyn commented Oct 28, 2016

Babel TypeScript
Rx.js 514K 483k
Rx.min.js 168k 139k

I've tested the Rx.js and Rx.min.js in my browser, and its work fine 😬

@zertosh
Copy link
Copy Markdown
Contributor

zertosh commented Oct 28, 2016

What's the load perf like?

@coveralls
Copy link
Copy Markdown

Coverage Status

Coverage remained the same at 97.217% when pulling df3458e on Brooooooklyn:bundle-tools into 89612b2 on ReactiveX:master.

@coveralls
Copy link
Copy Markdown

Coverage Status

Coverage remained the same at 97.217% when pulling df3458e on Brooooooklyn:bundle-tools into 89612b2 on ReactiveX:master.

@Brooooooklyn
Copy link
Copy Markdown
Contributor Author

Brooooooklyn commented Oct 28, 2016

TypeScript:
image

Babel:
image

@zertosh

@zertosh
Copy link
Copy Markdown
Contributor

zertosh commented Oct 28, 2016

Got the same results. Looks like tslib is leaking globals __extends, __assign, etc. when the build is run without a CJS wrapper (i.e. browser).

@Brooooooklyn
Copy link
Copy Markdown
Contributor Author

The leaking global problem would resolve when microsoft/TypeScript#9097 landed. And I think that does not affect anything.

@benlesh
Copy link
Copy Markdown
Member

benlesh commented Oct 28, 2016

This looks great.

:shipit:

@coveralls
Copy link
Copy Markdown

Coverage Status

Coverage remained the same at 97.217% when pulling ae716fd on Brooooooklyn:bundle-tools into 0588cc3 on ReactiveX:master.

Comment thread package.json Outdated
"compile_dist_es6": "tsc ./dist/es6/src/Rx.ts ./dist/es6/src/add/observable/of.ts -m es2015 --sourceMap --outDir ./dist/es6 --target ES6 -d --diagnostics --pretty --noImplicitAny --noImplicitReturns --suppressImplicitAnyIndexErrors --moduleResolution node",
"compile_dist_es6_for_docs": "tsc ./dist/es6/src/Rx.ts ./dist/es6/src/add/observable/of.ts ./dist/es6/src/MiscJSDoc.ts -m es2015 --sourceMap --outDir ./dist/es6 --target ES6 -d --diagnostics --pretty --noImplicitAny --noImplicitReturns --suppressImplicitAnyIndexErrors --moduleResolution node",
"compile_dist_es6": "tsc ./dist/es6/src/Rx.ts ./dist/es6/src/add/observable/of.ts -m es2015 --sourceMap --outDir ./dist/es6 --target ES5 -d --diagnostics --pretty --noImplicitAny --noImplicitReturns --suppressImplicitAnyIndexErrors --moduleResolution node --noEmitHelpers --lib es5,es2015.iterable,es2015.collection,es2015.promise,dom ",
"compile_dist_es6_for_docs": "tsc ./dist/es6/src/Rx.ts ./dist/es6/src/add/observable/of.ts ./dist/es6/src/MiscJSDoc.ts -m es2015 --sourceMap --outDir ./dist/es6 --target ES6 -d --diagnostics --pretty --noImplicitAny --noImplicitReturns --suppressImplicitAnyIndexErrors --moduleResolution node --noEmitHelpers",
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

is this needed if this build is only going to be used to generate document?

Comment thread package.json Outdated
"compile_dist_cjs": "tsc ./dist/cjs/src/Rx.ts ./dist/cjs/src/add/observable/of.ts -m commonjs --lib es5,es2015.iterable,es2015.collection,es2015.promise,dom --sourceMap --outDir ./dist/cjs --target ES5 -d --diagnostics --pretty --noImplicitAny --noImplicitReturns --suppressImplicitAnyIndexErrors --moduleResolution node",
"compile_dist_es6": "tsc ./dist/es6/src/Rx.ts ./dist/es6/src/add/observable/of.ts -m es2015 --sourceMap --outDir ./dist/es6 --target ES6 -d --diagnostics --pretty --noImplicitAny --noImplicitReturns --suppressImplicitAnyIndexErrors --moduleResolution node",
"compile_dist_es6_for_docs": "tsc ./dist/es6/src/Rx.ts ./dist/es6/src/add/observable/of.ts ./dist/es6/src/MiscJSDoc.ts -m es2015 --sourceMap --outDir ./dist/es6 --target ES6 -d --diagnostics --pretty --noImplicitAny --noImplicitReturns --suppressImplicitAnyIndexErrors --moduleResolution node",
"compile_dist_es6": "tsc ./dist/es6/src/Rx.ts ./dist/es6/src/add/observable/of.ts -m es2015 --sourceMap --outDir ./dist/es6 --target ES5 -d --diagnostics --pretty --noImplicitAny --noImplicitReturns --suppressImplicitAnyIndexErrors --moduleResolution node --noEmitHelpers --lib es5,es2015.iterable,es2015.collection,es2015.promise,dom ",
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I know this is nitpicking and should not block check in, might need to rename script since it doesn't target es6 anymore.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

updated 👌

@kwonoj
Copy link
Copy Markdown
Member

kwonoj commented Oct 28, 2016

LGTM too. 👍

@coveralls
Copy link
Copy Markdown

Coverage Status

Coverage remained the same at 97.217% when pulling 8c366f0 on Brooooooklyn:bundle-tools into 0588cc3 on ReactiveX:master.

@lock
Copy link
Copy Markdown

lock bot commented Jun 6, 2018

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked as resolved and limited conversation to collaborators Jun 6, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants