@metamask-previews/perps-controller 2.0.0-preview-197e1b7 → 2.0.0-preview-dff83af4c

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -87,6 +87,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
87
87
 
88
88
  ### Fixed
89
89
 
90
+ - Preserve `/* webpackIgnore: true */` magic comment in built dist files by using a variable for the MYXProvider dynamic import path, preventing ts-bridge from rewriting the AST node and stripping the comment ([#8424](https://github.com/MetaMask/core/pull/8424))
90
91
  - Fix incorrect fee estimate when flipping a position ([#8333](https://github.com/MetaMask/core/pull/8333))
91
92
  - Fix incorrect PnL and order size displayed after SL execution ([#8333](https://github.com/MetaMask/core/pull/8333))
92
93
  - Fix stop loss not showing up in recent activity ([#8333](https://github.com/MetaMask/core/pull/8333))
@@ -3227,7 +3227,11 @@ async function _PerpsController_performInitialization() {
3227
3227
  // IMPORTANT: Must use import() — NOT require() — for core/extension tree-shaking.
3228
3228
  // require() is synchronous and bundlers include it in the main bundle.
3229
3229
  // import() enables true code splitting so MYX is excluded when not enabled.
3230
- __classPrivateFieldSet(this, _PerpsController_myxRegistrationPromise, import("./providers/MYXProvider.cjs")
3230
+ // NOTE: Uses a variable so ts-bridge does not rewrite the import
3231
+ // specifier (which would strip the webpackIgnore magic comment).
3232
+ const myxModulePath = './providers/MYXProvider';
3233
+ __classPrivateFieldSet(this, _PerpsController_myxRegistrationPromise, import(
3234
+ /* webpackIgnore: true */ myxModulePath)
3231
3235
  .then(({ MYXProvider }) => {
3232
3236
  this.registerMYXProvider(MYXProvider);
3233
3237
  return undefined;