Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: client #3129

Merged
merged 11 commits into from Apr 1, 2021
Merged

refactor: client #3129

merged 11 commits into from Apr 1, 2021

Conversation

alexander-akait
Copy link
Member

  • This is a bugfix
  • This is a feature
  • This is a code refactor
  • This is a test update
  • This is a docs update
  • This is a metadata update

For Bugs and Features; did you add new tests?

Existing

Motivation / Use-Case

Improve structure, refactor code, allow to run on IE11/IE10/IE9, IE8 is not supported, sorry

Breaking Changes

No

Additional Info

IE11/IE10:

module.exports = {
  entry: {
    entry: [
      'whatwg-fetch', 
      'core-js/features/promise', 
      './entry.js'
    ],
  },
};

IE9:

module.exports = {
  entry: {
    entry: [
      'whatwg-fetch', 
      'core-js/features/promise', 
      './entry.js'
    ],
  },
  devServer: {
    transportMode: 'sockjs',
  },
};
``

@alexander-akait
Copy link
Member Author

alexander-akait commented Mar 29, 2021

I will improve eslint configuration tomorrow

@alexander-akait
Copy link
Member Author

Also we need improve modules/logger (i.e. built-in webpack logger), inside code we have Symbol, maybe we need to migrate on https://github.com/webpack/webpack/blob/master/hot/log.js or do not polling Symbol to global scope, I need time to think about it

@codecov
Copy link

codecov bot commented Mar 31, 2021

Codecov Report

Merging #3129 (015bf88) into master (b123f31) will increase coverage by 2.82%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #3129      +/-   ##
==========================================
+ Coverage   91.95%   94.78%   +2.82%     
==========================================
  Files          37       37              
  Lines        1292     1207      -85     
  Branches      349      325      -24     
==========================================
- Hits         1188     1144      -44     
+ Misses         96       57      -39     
+ Partials        8        6       -2     
Impacted Files Coverage Δ
client-src/modules/sockjs-client/index.js 100.00% <ø> (ø)
client-src/modules/strip-ansi/index.js 100.00% <ø> (ø)
client-src/overlay.js 97.01% <ø> (ø)
client-src/utils/createSocketUrl.js 100.00% <ø> (ø)
client-src/utils/getCurrentScriptSource.js 100.00% <ø> (ø)
client-src/utils/reloadApp.js 86.95% <ø> (ø)
client-src/utils/sendMessage.js 85.71% <ø> (ø)
lib/servers/SockJSServer.js 94.11% <ø> (ø)
lib/utils/DevServerPlugin.js 97.26% <ø> (ø)
lib/utils/getSocketClientPath.js 100.00% <ø> (ø)
... and 12 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 b123f31...015bf88. Read the comment docs.

@alexander-akait
Copy link
Member Author

Weird with coverage 😕

@alexander-akait
Copy link
Member Author

I want postpone logger refactor for #2932

@alexander-akait
Copy link
Member Author

macos on github actions is hell...

@alexander-akait alexander-akait merged commit 1e3e656 into master Apr 1, 2021
@alexander-akait alexander-akait deleted the refactor-client branch April 1, 2021 14:07
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.

None yet

1 participant