-
Notifications
You must be signed in to change notification settings - Fork 5.3k
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
Add esm resolver for bundlers #5070
Conversation
…add esm resolver generator for `ace-code` package
Codecov ReportBase: 86.20% // Head: 86.21% // Increases project coverage by
Additional details and impacted files@@ Coverage Diff @@
## master #5070 +/- ##
=======================================
Coverage 86.20% 86.21%
=======================================
Files 548 548
Lines 41704 41716 +12
Branches 6564 6565 +1
=======================================
+ Hits 35953 35965 +12
Misses 5751 5751
Flags with carried forward coverage won't be shown. Click here to find out more.
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
# Conflicts: # src/config_test.js
@@ -0,0 +1,65 @@ | |||
var fs = require("fs"); | |||
|
|||
function buildResolver() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can you import these functions from Makefile.dryice.js?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I changed code to import, hope that would work
Issue #, if available:
Description of changes:
setModuleLoader
for ace config to allowace.config.setModuleLoader('ace/ext/beautify', () => import('./src-noconflict/ext-beautify.js'));
dynamic imports for all extensions for bundlers (tested in Webpack 5, Parcel, Vite).prepack
forace-code
package (respecting paths)ace-builds
(respecting paths)I left
webpack-resolver
generator as it could be used for webpack 4 or less.Example builds could be found here
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.