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

Use mini require #4845

Merged
merged 2 commits into from Jul 18, 2022
Merged

Use mini require #4845

merged 2 commits into from Jul 18, 2022

Conversation

nightwing
Copy link
Member

this will allow to use cjs code in browser without a bundler.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@codecov
Copy link

codecov bot commented Jul 18, 2022

Codecov Report

Merging #4845 (30ea87e) into master (922a50e) will increase coverage by 0.10%.
The diff coverage is 42.85%.

@@            Coverage Diff             @@
##           master    #4845      +/-   ##
==========================================
+ Coverage   69.94%   70.05%   +0.10%     
==========================================
  Files         559      557       -2     
  Lines       58338    58218     -120     
  Branches    11235    11195      -40     
==========================================
- Hits        40805    40783      -22     
+ Misses      17533    17435      -98     
Flag Coverage Δ
unittests 70.05% <42.85%> (+0.10%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
lib/ace/editor.js 82.61% <ø> (-0.02%) ⬇️
lib/ace/config.js 63.52% <33.33%> (+14.81%) ⬆️
lib/ace/ace.js 100.00% <100.00%> (ø)
lib/ace/lib/fixoldbrowsers.js
lib/ace/lib/es6-shim.js

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 922a50e...30ea87e. Read the comment docs.

@@ -36,8 +36,7 @@

define(function(require, exports, module) {
"use strict";

require("./lib/fixoldbrowsers");
"include loader_build";
Copy link
Contributor

Choose a reason for hiding this comment

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

If I understand correctly, this is a breaking change for those who consume Ace directly via source code, right?

Copy link
Member Author

Choose a reason for hiding this comment

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

I think it is not, because the things we use from fixoldbrowsers are already supported on all browsers we support, so this was only adding bloat to ace.

@andrewnester andrewnester merged commit b9fabd4 into master Jul 18, 2022
@andrewnester andrewnester deleted the use-mini_require branch July 18, 2022 16:54
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

2 participants