Skip to content

Babel plugin fixes to make the generated code syntax valid in ie8#799

Merged
matthewlane merged 1 commit into
prebid:masterfrom
baragona:babel_ie8_syntax_fix
Nov 16, 2016
Merged

Babel plugin fixes to make the generated code syntax valid in ie8#799
matthewlane merged 1 commit into
prebid:masterfrom
baragona:babel_ie8_syntax_fix

Conversation

@baragona

Copy link
Copy Markdown
Contributor

Type of change

  • Bugfix
  • Feature
  • New bidder adapter
  • Code style update (formatting, local variables)
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • CI related changes
  • Other

Description of change

I require() prebid.js in my project. I try to ensure my code runs in ie8. Thus, I actually use require() inside a try{}catch{} block -- because prebid itself doesn't run in ie8.

At some point a change was made to the build process that prevents ie8 from even parsing the syntax of the code - thus stopping all execution.

This change simply ensures that at least the syntax of the code doesn't confuse the ie8 parser, so as to allow catching an error in attempting to run it.

This fix was inspired from here: babel/babel#4168

@matthewlane
matthewlane merged commit add89cb into prebid:master Nov 16, 2016
mp-12301 pushed a commit to AOL-archive/Prebid.js that referenced this pull request Apr 10, 2017
…ebid-0.15.2 to release/1.8.0

* commit '3c3d298eb248a7f69dd4ae86f3f6341f2c04b1b5': (36 commits)
  CHANGELOG
  Add new adapters for AOL analytics.
  Prebid 0.15.2 Release
  Fix issue with building prebid from npm install. Babel loader was being skipped because of the project residing in /node_modules/ directory. (prebid#820)
  Increment pre version
  Prebid 0.15.1 Release
  Update bidFloor->bidfloor to match other bidders + updated conversant docs (prebid#818)
  Correct 'bidloor' typo in Conversant adapter (prebid#815)
  Increment pre version
  0.15.0 release
  support IE userLanguage Navigator property (prebid#807)
  exclude node_modules from babel-loader as to prevent strict mode errors (prebid#806)
  PulsePoint Adapter - Support for additional parameters. (prebid#784)
  Fix 'skippable' targeting typo (prebid#804)
  Adding adKernel adapter (prebid#739)
  Babel plugin fixes to make the generated code syntax valid in ie8 (prebid#799)
  Vertoz Adapter (prebid#789)
  RubiconLite is now just Rubicon and "rubicon" aliases "rubiconLite" (prebid#783)
  add version to global namespace (prebid#794)
  Adform adapter tests fixed prebid#769 (prebid#793)
  ...
mp-12301 pushed a commit to AOL-archive/Prebid.js that referenced this pull request Apr 10, 2017
…8.0 to master

* commit '997aa5bce17aafd6b215d335551e89757f92bf3e': (37 commits)
  CHANGELOG.
  CHANGELOG
  Add new adapters for AOL analytics.
  Prebid 0.15.2 Release
  Fix issue with building prebid from npm install. Babel loader was being skipped because of the project residing in /node_modules/ directory. (prebid#820)
  Increment pre version
  Prebid 0.15.1 Release
  Update bidFloor->bidfloor to match other bidders + updated conversant docs (prebid#818)
  Correct 'bidloor' typo in Conversant adapter (prebid#815)
  Increment pre version
  0.15.0 release
  support IE userLanguage Navigator property (prebid#807)
  exclude node_modules from babel-loader as to prevent strict mode errors (prebid#806)
  PulsePoint Adapter - Support for additional parameters. (prebid#784)
  Fix 'skippable' targeting typo (prebid#804)
  Adding adKernel adapter (prebid#739)
  Babel plugin fixes to make the generated code syntax valid in ie8 (prebid#799)
  Vertoz Adapter (prebid#789)
  RubiconLite is now just Rubicon and "rubicon" aliases "rubiconLite" (prebid#783)
  add version to global namespace (prebid#794)
  ...
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