Skip to content
This repository was archived by the owner on May 22, 2021. It is now read-only.

added webpack#466

Merged
dannycoates merged 1 commit intomasterfrom
webpack
Aug 7, 2017
Merged

added webpack#466
dannycoates merged 1 commit intomasterfrom
webpack

Conversation

@dannycoates
Copy link
Copy Markdown
Contributor

This is just a start at webpack and transpiling to es2015.

@pdehaan I excluded the "env" preset for now for simplicity. We should revisit it along with removing the full polyfill.min.js script from the template in a follow up issue.

Bonus: fixes Edge (I think)


document.addEventListener('DOMContentLoaded', function() {
links = document.querySelectorAll('a:not([target])');
links = Array.from(document.querySelectorAll('a:not([target])'));
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.

Edge doesn't have forEach on NodeList

@@ -1,4 +1,4 @@
const testPilotGA = require('testpilot-ga');
const testPilotGA = require('testpilot-ga/src/TestPilotGA');
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.

This is a bit hacky but it lets us transpile the lib how we want to

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.

It technically works, but only due to a bug in mozilla/testpilot-ga#13.
Not sure how you want to address. We'd either have to re-compile the testpilot-ga dist files, or kill my upstream PR and remove the bad files in testpilot-ga repo.

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.

we can cross that bridge when we get there ;)

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.

Totally, just wanted to point out that due to the fact of loose dependency versions ("testpilot-ga": "^0.3.0"), semver, and upstream repos, that could technically break at any point in the future when @chuckharmston publishes a new version of testpilot-ga.

"babel-polyfill": "^6.23.0",
"babel-preset-es2015": "^6.24.1",
"babel-preset-stage-2": "^6.24.1",
"browserify": "^14.4.0",
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.

we should follow up to remove this, but i didn't want to mess with test--browser yet

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.

2 participants