From bd565475a9b7e273b2f9f3f4931fe1e7d3c9a26d Mon Sep 17 00:00:00 2001 From: Chengzhong Wu Date: Wed, 16 Nov 2022 00:50:00 +0800 Subject: [PATCH] fix(api): disable module concatenation in tree-shaking test (#3409) Co-authored-by: Daniel Dyla --- 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, } });