-
-
Notifications
You must be signed in to change notification settings - Fork 587
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
support analyze AMD module format #4313
Comments
I see that it has already been supported. |
Nope, I mean analyze dependencies from an AMD module and bundle its dependencies, for now Rspack only support output an AMD format library if I remember correctly |
Great to hear that someone is into that @nilptr That's basically the only thing that's missing and messing the hustle free switch from webpack. We have a bunch of jquery-ui imports that don't work out of the box. Do you know how to fix it before you implement this? |
Is this the place to report AMD issues or should I open a new issue? I'm struggling with Rspack output regarding an AMD build breaking at runtime because of Rspack including the umd wrapper from a dependency: "../../../../../node_modules/json-logic-js/logic.js": (function (module) {
/* globals define,module */
/*
Using a Universal Module Loader that should be browser, require, and AMD friendly
http://ricostacruz.com/cheatsheets/umdjs.html
*/
;(function(root, factory) {
if (typeof define === "function" && define.amd) {
define(factory);
} else if (true) {
module.exports = factory();
} else {}
}(this, function() {
"use strict";
/* globals console:false */
// ... module code Where as webpack output contains this instead (which doesn't use the global define function): /***/ "../../../../../node_modules/json-logic-js/logic.js":
/*!**********************************************************!*\
!*** ../../../../../node_modules/json-logic-js/logic.js ***!
\**********************************************************/
/***/ (function(module, exports, __webpack_require__) {
var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_RESULT__;/* globals define,module */
/*
Using a Universal Module Loader that should be browser, require, and AMD friendly
http://ricostacruz.com/cheatsheets/umdjs.html
*/
;(function(root, factory) {
if (true) {
!(__WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
__WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
(__WEBPACK_AMD_DEFINE_FACTORY__.call(exports, __webpack_require__, exports, module)) :
__WEBPACK_AMD_DEFINE_FACTORY__),
__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
} else {}
}(this, function() {
"use strict";
/* globals console:false */ The bundle is built with |
What problem does this feature solve?
What does the proposed API of configuration look like?
https://webpack.js.org/configuration/other-options/#amd
The text was updated successfully, but these errors were encountered: