diff --git a/CHANGELOG.md b/CHANGELOG.md index f8141e66e03..6331d477426 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,7 @@ - Fixed `EuiSuperSelect` not rendering full width when `isOpen` is `true` ([#3495](https://github.com/elastic/eui/pull/3495)) - Fixed `EuiBasicTable` shows no items if all items of last page is deleted ([#3422](https://github.com/elastic/eui/pull/3422)) +- Fixed TypeScript module name in generated `eui_charts_theme.d.ts` file ([#3492](https://github.com/elastic/eui/pull/3492)) **Deprecations** diff --git a/scripts/compile-eui.js b/scripts/compile-eui.js index ebda61cb841..c48fddefbc2 100755 --- a/scripts/compile-eui.js +++ b/scripts/compile-eui.js @@ -1,3 +1,23 @@ +/* + * Licensed to Elasticsearch B.V. under one or more contributor + * license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright + * ownership. Elasticsearch B.V. licenses this file to you under + * the Apache License, Version 2.0 (the "License"); you may + * not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + + const { execSync } = require('child_process'); const chalk = require('chalk'); const shell = require('shelljs'); @@ -118,7 +138,13 @@ function compileBundle() { files: ['themes.ts'], resolveModuleId() { return '@elastic/eui/dist/eui_charts_theme'; - } + }, + resolveModuleImport(params) { + if (params.importedModuleId === '../../components/common') { + return '@elastic/eui/src/components/common'; + } + return null; + } }); console.log(chalk.green('✔ Finished chart theme module')); }