yorkxin / copy-as-markdown

A browser extension to copy tabs and links as Markdown
MIT License
542 stars 83 forks source link

ES Modules #71

Closed yorkxin closed 5 years ago

yorkxin commented 5 years ago

Summary

Converted to ES Modules for the following reasons:

  1. Both Chrome and Firefox added support to ESM
  2. Firefox disapproved my add-on because I am "delivering obscuring code" which was generated by webpack

Webpack has been removed from the build pipeline, which was used to inject build environment flags. Because those environment flags are not available anymore, the program has to detect / sniff the current supported browser features, especially to copy the text.

Also refactored many code to ensure that it works on both browsers.

Also added ESLint.

Tests

Optional: