From dfa9806637303f2b75da505dcba84929a751bd88 Mon Sep 17 00:00:00 2001 From: legendecas Date: Mon, 14 Nov 2022 16:28:00 +0800 Subject: [PATCH] fix(api): disable module concatenation in tree-shaking test --- api/CHANGELOG.md | 4 ++++ api/test/tree-shaking/tree-shaking.test.ts | 2 ++ 2 files changed, 6 insertions(+) diff --git a/api/CHANGELOG.md b/api/CHANGELOG.md index 12b33c4e2c..983a0261ce 100644 --- a/api/CHANGELOG.md +++ b/api/CHANGELOG.md @@ -2,6 +2,10 @@ All notable changes to this project will be documented in this file. +## Unreleased + +* test(api): disable module concatenation in tree-shaking test [#3409](https://github.com/open-telemetry/opentelemetry-js/pull/3409) @legendecas + ## [1.3.0](https://www.github.com/open-telemetry/opentelemetry-js-api/compare/v1.2.0...v1.3.0) * feat(api): merge api-metrics into api [#3374](https://github.com/open-telemetry/opentelemetry-js/pull/3374) @legendecas diff --git a/api/test/tree-shaking/tree-shaking.test.ts b/api/test/tree-shaking/tree-shaking.test.ts index 37ab5def3a..5c75b8e9d5 100644 --- a/api/test/tree-shaking/tree-shaking.test.ts +++ b/api/test/tree-shaking/tree-shaking.test.ts @@ -74,6 +74,8 @@ describe('tree-shaking', () => { optimization: { // disable minimization so that we can inspect the output easily. minimize: false, + // disable module concatenation so that variable names will not be mangled. + concatenateModules: false, } });