Skip to content
This repository was archived by the owner on Jan 11, 2023. It is now read-only.

Continue conversion from commonjs to es modules#3126

Merged
jasonLaster merged 8 commits into
firefox-devtools:masterfrom
peterschussheim:finish-cjs-to-es-modules
Jun 7, 2017
Merged

Continue conversion from commonjs to es modules#3126
jasonLaster merged 8 commits into
firefox-devtools:masterfrom
peterschussheim:finish-cjs-to-es-modules

Conversation

@peterschussheim

Copy link
Copy Markdown
Contributor

Continue conversion from commonjs to es modules

Associated Issue: #1884

Summary of Changes

Refactor the following files to use ES module syntax:

  • src/client/chrome.js
  • src/client/chrome/commands.js
  • src/client/chrome/create.js
  • src/client/chrome/events.js
  • src/client/firefox/commands.js
  • src/client/firefox/create.js
  • src/client/firefox/events.js
  • src/client/index.js
  • src/components/Editor/Tabs.js
  • src/components/SecondaryPanes/Breakpoints.js
  • src/components/SecondaryPanes/WhyPaused.js
  • src/utils/log.js
  • src/utils/pause.js
  • src/utils/redux/middleware/thunk.js
  • src/utils/redux/middleware/wait-service.js

Test Plan

  • yarn test-all

@jasonLaster jasonLaster left a comment

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.

👍

@jasonLaster

Copy link
Copy Markdown
Contributor

We're going to 🔫 commonjs soon

@peterschussheim

Copy link
Copy Markdown
Contributor Author

Any thoughts why src/utils/prefs.js is so troublesome to convert? I tried many different solutions for this file but always get one of the following syntax errors during loading of the compiled debugger.js bundle:

  • Uncaught SyntaxError: Unexpected token import
  • Uncaught SyntaxError: Unexpected token export

@jasonLaster

Copy link
Copy Markdown
Contributor

Forget it. It's a trap

@jasonLaster

Copy link
Copy Markdown
Contributor

Let's do everything but that lol

@codecov

codecov Bot commented Jun 7, 2017

Copy link
Copy Markdown

Codecov Report

Merging #3126 into master will increase coverage by 18.54%.
The diff coverage is 66.66%.

Impacted file tree graph

@@             Coverage Diff             @@
##           master    #3126       +/-   ##
===========================================
+ Coverage   47.63%   66.17%   +18.54%     
===========================================
  Files          95       76       -19     
  Lines        4012     2705     -1307     
  Branches      821      549      -272     
===========================================
- Hits         1911     1790      -121     
+ Misses       2101      915     -1186
Impacted Files Coverage Δ
src/utils/pause.js 80% <ø> (-1.25%) ⬇️
src/client/firefox/commands.js 15.17% <ø> (-1.49%) ⬇️
src/components/SecondaryPanes/WhyPaused.js 80.76% <ø> (-0.72%) ⬇️
src/client/firefox/events.js 36.36% <ø> (-7.64%) ⬇️
src/client/firefox/create.js 18.18% <0%> (ø) ⬆️
src/utils/redux/middleware/thunk.js 100% <100%> (ø) ⬆️
src/utils/redux/middleware/wait-service.js 70% <100%> (-1.43%) ⬇️
src/utils/editor/index.js 7.14% <0%> (-7.15%) ⬇️
src/components/shared/Popover.js
src/components/shared/ObjectInspector.js
... and 19 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update d61bb3e...98a2dfd. Read the comment docs.

@jasonLaster jasonLaster merged commit dbb50fe into firefox-devtools:master Jun 7, 2017
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