Skip to content
This repository has been archived by the owner on Sep 10, 2022. It is now read-only.

Build umd with rollup #341

Merged
merged 4 commits into from Apr 8, 2017
Merged

Build umd with rollup #341

merged 4 commits into from Apr 8, 2017

Conversation

TrySound
Copy link
Contributor

@TrySound TrySound commented Apr 6, 2017

build

  • Recompose.js 76 360 -> 35 623
  • Recompose.js 28 877 -> 13 028

Also I'd like to bundle es modules version soon

@istarkov
Copy link
Contributor

istarkov commented Apr 7, 2017

Super! Will look today. Thank you

@istarkov
Copy link
Contributor

istarkov commented Apr 7, 2017

Can you fix linter errors? I know we have not check them in package.json lint rule, but it's our mistake.

@TrySound
Copy link
Contributor Author

TrySound commented Apr 7, 2017

Okay

@TrySound
Copy link
Contributor Author

TrySound commented Apr 7, 2017

Do you mean release.js or that no-console wraning?

@istarkov
Copy link
Contributor

istarkov commented Apr 7, 2017

All 50+ after this command ;-)

./node_modules/.bin/eslint ./scripts/ ./rollup.config.js

@istarkov
Copy link
Contributor

istarkov commented Apr 7, 2017

Also I've got Unknown plugin "babel-plugin-external-helpers" specified in "base" at 23, attempted to resolve rel ative to "/Users/ice/ext/npm/recompose/src/packages/recompose"

@istarkov
Copy link
Contributor

istarkov commented Apr 7, 2017

Also (I'm just curious) haven't you investigated what causes so big size decrease? webpack module headers or some dependency?

PS: Or may be babel-plugin-external-helpers?

@TrySound
Copy link
Contributor Author

TrySound commented Apr 7, 2017

Webpack adds some boilerplate for each module. Maybe something in deps was treeshaked. Maybe Babel helpers. Or all together)

@TrySound
Copy link
Contributor Author

TrySound commented Apr 7, 2017

@acdlite So much changed since yesterday :))

@TrySound
Copy link
Contributor Author

TrySound commented Apr 7, 2017

Maybe fixing test fail is the purpose of different PR?

@istarkov
Copy link
Contributor

istarkov commented Apr 7, 2017 via email

@TrySound
Copy link
Contributor Author

TrySound commented Apr 7, 2017

Wow, found 11 Object.assign and a lot more helpers. I guess this is one of main wins.

@istarkov
Copy link
Contributor

istarkov commented Apr 7, 2017

I'm having strange behaviour trying to preview build results without your PR just adding babel-plugin-external-helpers and trying to build the project npm run release

/Users/ice/ext/npm/recompose/scripts/release.js:5
var _fs2 = babelHelpers.interopRequireDefault(_fs);
           ^

ReferenceError: babelHelpers is not defined

I haven't used helpers, what it can be?

PS: based on this http://babeljs.io/docs/plugins/external-helpers/ do we need to build them?

@istarkov
Copy link
Contributor

istarkov commented Apr 7, 2017

Have you tried resulting umd build? The same error can be there.

@TrySound
Copy link
Contributor Author

TrySound commented Apr 8, 2017

Rollup plugin Babel adds necessary helpers. Babel loader seems not.

@TrySound
Copy link
Contributor Author

TrySound commented Apr 8, 2017

Or its babel-node. You should have different config or add env variables. This however didn't worked in this PR. I'll try to fix it later. Maybe we even don't need babel-node, caz the last node is pretty babeled. :)

@istarkov
Copy link
Contributor

istarkov commented Apr 8, 2017

Super, Thank you a lot!!!

@istarkov istarkov merged commit 47d4ec7 into acdlite:master Apr 8, 2017
@TrySound TrySound deleted the rollup-build branch April 8, 2017 12:06
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.

None yet

2 participants