Skip to content

Build: Remove dependency on es2015-rollup preset#1027

Merged
leobalter merged 1 commit into
qunitjs:masterfrom
trentmwillis:rollup-preset
Aug 6, 2016
Merged

Build: Remove dependency on es2015-rollup preset#1027
leobalter merged 1 commit into
qunitjs:masterfrom
trentmwillis:rollup-preset

Conversation

@trentmwillis

Copy link
Copy Markdown
Member

This is should fix the build by removing our dependency on the es2015-rollup preset.

Comment thread rollup.config.js
babel( {
presets: [ "es2015-rollup" ]
presets: [
[ "es2015", { modules: false } ]

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'm too lazy to search in the docs, what this modules mean?

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've just got it. :)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Modules = ES6-style modules vs scripts? Or something else? Link to docs please?

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.

This is basically telling Babel to not transpile ES modules, as they will be handled by rollup.

@leobalter

Copy link
Copy Markdown
Member

Running "rollup:src" (rollup) task
Warning: Error transforming /home/travis/build/jquery/qunit/src/qunit.js with 'babel' plugin: Unknown plugin "external-helpers" specified in "base" at 0, attempted to resolve relative to "/home/travis/build/jquery/qunit/src"� Use --force to continue.

It's still breaking on appveyor and travis.

I'm starting to think it is a nice opportunity to try webpack.

Comment thread package.json
"async": "1.5.2",
"babel-preset-es2015-rollup": "^1.1.1",
"babel-plugin-external-helpers": "6.8.0",
"browserstack-runner": "0.4.3",

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.

missing a line with "babel-preset-es2015": "6.13.2",

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Yep. Forgot to --save-dev some of the npm installs.

@trentmwillis

Copy link
Copy Markdown
Member Author

I'm starting to think it is a nice opportunity to try webpack.

Could be. I don't want to go through the hassle of reconfiguring things, but if someone else wants to, go for it.

@trentmwillis

Copy link
Copy Markdown
Member Author

@leobalter good to merge? Everything's green now.

@leobalter leobalter merged commit 8b3c96e into qunitjs:master Aug 6, 2016
@leobalter

Copy link
Copy Markdown
Member

done! I'm really excited we finally have ES modules up.

flore77 pushed a commit to flore77/qunit that referenced this pull request Aug 10, 2016
@trentmwillis trentmwillis deleted the rollup-preset branch March 2, 2018 16:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

4 participants