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

WIP: Switch from commonjs to ESM #255

Merged
merged 65 commits into from
Aug 27, 2020
Merged

WIP: Switch from commonjs to ESM #255

merged 65 commits into from
Aug 27, 2020

Conversation

cowlicks
Copy link
Owner

unit tests are working locally
browser stuff is untested

@cowlicks
Copy link
Owner Author

To make this work, I need to create at background.html page, which loads the scripts that are currently in manifest.json:background:scripts. There is no safe way to use ESM modules in content scripts. But these are fairly contained so don't need the ESM stuff.

/**
* we load these lazily.
*/

import {FakeMessages, FakeDisk, Connects} from './fakes.js';

function wrapObject(base) {
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I added features to this thing that I'm barely using. It's handy and I should document it.

@cowlicks
Copy link
Owner Author

Popup and background are good. I need to check the content scripts next

@cowlicks
Copy link
Owner Author

Content scripts working.

Need to test in FF.

@cowlicks cowlicks merged commit 1e8cf12 into master Aug 27, 2020
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.

1 participant