diff --git a/packages/eui-theme-borealis/changelogs/upcoming/8764.md b/packages/eui-theme-borealis/changelogs/upcoming/8764.md new file mode 100644 index 00000000000..bdba00f3ca9 --- /dev/null +++ b/packages/eui-theme-borealis/changelogs/upcoming/8764.md @@ -0,0 +1,4 @@ +**Bug fixes** + +- Fixed missing source map warnings emitted by some bundlers by excluding source maps from being published + - To align with `@elastic/eui` and many other popular packages, we made a call to not ship source maps anymore diff --git a/packages/eui-theme-borealis/package.json b/packages/eui-theme-borealis/package.json index 152a1cfa870..e0abed00fdd 100644 --- a/packages/eui-theme-borealis/package.json +++ b/packages/eui-theme-borealis/package.json @@ -8,7 +8,7 @@ "build:clean": "rimraf lib/", "build": "yarn build:clean && yarn build:compile && yarn build:compile:cjs && yarn build:types && yarn copy-files", "build:compile": "tsc --project ./tsconfig.json", - "build:compile:cjs": "NODE_ENV=production NO_COREJS_POLYFILL=true babel src --out-dir=lib/cjs --extensions .js,.ts,.tsx --source-maps=true", + "build:compile:cjs": "NODE_ENV=production NO_COREJS_POLYFILL=true babel src --out-dir=lib/cjs --extensions .js,.ts,.tsx", "build:types": "NODE_ENV=production tsc --project tsconfig.types.json", "build-pack": "yarn build && npm pack", "copy-files": "node ./scripts/copy-json-files.js", diff --git a/packages/eui-theme-borealis/tsconfig.cjs.json b/packages/eui-theme-borealis/tsconfig.cjs.json index 6becea42efa..8dbb95ee273 100644 --- a/packages/eui-theme-borealis/tsconfig.cjs.json +++ b/packages/eui-theme-borealis/tsconfig.cjs.json @@ -11,7 +11,6 @@ ], "moduleResolution": "Node", "declaration": true, - "sourceMap": true, "noEmitHelpers": true, "incremental": true, "esModuleInterop": true, @@ -26,4 +25,4 @@ "exclude": [ "node_modules" ], -} \ No newline at end of file +} diff --git a/packages/eui-theme-borealis/tsconfig.json b/packages/eui-theme-borealis/tsconfig.json index 31450bf12d6..e91e8e9c231 100644 --- a/packages/eui-theme-borealis/tsconfig.json +++ b/packages/eui-theme-borealis/tsconfig.json @@ -11,7 +11,6 @@ ], "moduleResolution": "Node", "declaration": true, - "sourceMap": true, "noEmitHelpers": true, "incremental": true, "esModuleInterop": true, @@ -25,4 +24,4 @@ "exclude": [ "node_modules" ], -} \ No newline at end of file +} diff --git a/packages/eui-theme-borealis/tsconfig.types.json b/packages/eui-theme-borealis/tsconfig.types.json index 54e2031daae..f47144cc9ae 100644 --- a/packages/eui-theme-borealis/tsconfig.types.json +++ b/packages/eui-theme-borealis/tsconfig.types.json @@ -3,11 +3,10 @@ "compilerOptions": { "outDir": "lib/cjs", "declaration": true, - "declarationMap": true, "isolatedModules": false, "noEmit": false, "allowJs": false, "emitDeclarationOnly": true }, "exclude": ["node_modules", "**/*.test.ts"] -} \ No newline at end of file +} diff --git a/packages/eui-theme-common/changelogs/upcoming/8764.md b/packages/eui-theme-common/changelogs/upcoming/8764.md new file mode 100644 index 00000000000..bdba00f3ca9 --- /dev/null +++ b/packages/eui-theme-common/changelogs/upcoming/8764.md @@ -0,0 +1,4 @@ +**Bug fixes** + +- Fixed missing source map warnings emitted by some bundlers by excluding source maps from being published + - To align with `@elastic/eui` and many other popular packages, we made a call to not ship source maps anymore diff --git a/packages/eui-theme-common/package.json b/packages/eui-theme-common/package.json index 8668bd020d8..1653b935ed4 100644 --- a/packages/eui-theme-common/package.json +++ b/packages/eui-theme-common/package.json @@ -7,7 +7,7 @@ "build:clean": "rimraf lib/", "build": "yarn build:clean && yarn build:compile && yarn build:compile:cjs && yarn build:types", "build:compile": "tsc --project ./tsconfig.json", - "build:compile:cjs": "NODE_ENV=production NO_COREJS_POLYFILL=true babel src --out-dir=lib/cjs --extensions .js,.ts,.tsx --source-maps=true", + "build:compile:cjs": "NODE_ENV=production NO_COREJS_POLYFILL=true babel src --out-dir=lib/cjs --extensions .js,.ts,.tsx", "build:types": "NODE_ENV=production tsc --project tsconfig.types.json", "build-pack": "yarn build && npm pack", "lint": "yarn tsc --noEmit && yarn lint-es && yarn lint-sass", diff --git a/packages/eui-theme-common/tsconfig.cjs.json b/packages/eui-theme-common/tsconfig.cjs.json index 6becea42efa..8dbb95ee273 100644 --- a/packages/eui-theme-common/tsconfig.cjs.json +++ b/packages/eui-theme-common/tsconfig.cjs.json @@ -11,7 +11,6 @@ ], "moduleResolution": "Node", "declaration": true, - "sourceMap": true, "noEmitHelpers": true, "incremental": true, "esModuleInterop": true, @@ -26,4 +25,4 @@ "exclude": [ "node_modules" ], -} \ No newline at end of file +} diff --git a/packages/eui-theme-common/tsconfig.json b/packages/eui-theme-common/tsconfig.json index 31450bf12d6..e91e8e9c231 100644 --- a/packages/eui-theme-common/tsconfig.json +++ b/packages/eui-theme-common/tsconfig.json @@ -11,7 +11,6 @@ ], "moduleResolution": "Node", "declaration": true, - "sourceMap": true, "noEmitHelpers": true, "incremental": true, "esModuleInterop": true, @@ -25,4 +24,4 @@ "exclude": [ "node_modules" ], -} \ No newline at end of file +} diff --git a/packages/eui-theme-common/tsconfig.types.json b/packages/eui-theme-common/tsconfig.types.json index 54e2031daae..f47144cc9ae 100644 --- a/packages/eui-theme-common/tsconfig.types.json +++ b/packages/eui-theme-common/tsconfig.types.json @@ -3,11 +3,10 @@ "compilerOptions": { "outDir": "lib/cjs", "declaration": true, - "declarationMap": true, "isolatedModules": false, "noEmit": false, "allowJs": false, "emitDeclarationOnly": true }, "exclude": ["node_modules", "**/*.test.ts"] -} \ No newline at end of file +}