You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: removed support for experimental loader flag (#2153)
BREAKING CHANGE:
- Removed support for --experimental-loader
- Removed support for esm-loader.mjs
Migration Recommendations:
- Replace --experimental-loader with --import
- Use esm-register.mjs instead of esm-loader.mjs
e.g. --import /path/to/instana/node_modules/@instana/collector/esm-register.mjs
We have added the ESM support for all Node.js versions, Since version 20.6, [ESM loaders are off-thread](https://github.com/nodejs/node/pull/44710), loaded separately, a shift from previous setups where the Instana collector was loaded within the loader, leading to a disruption in existing implementation. To resolve this, we've replaced the deprecated `--experimental-loader` with `--import`, facilitating the loading of the collector in the main thread. However, note that `--import` is only compatible with Node.js v18.19 and later, necessitating the maintenance of both styles for different Node.js versions.
376
376
377
-
Use the following command to enable experimental ESM support:
378
-
379
-
- For Node.js versions greater than or equal to 18.19:
0 commit comments