{"_id":"@atlassian/atlaskit-theme-excluded-webpack-plugin","name":"@atlassian/atlaskit-theme-excluded-webpack-plugin","dist-tags":{"latest":"0.1.0"},"versions":{"0.1.0":{"name":"@atlassian/atlaskit-theme-excluded-webpack-plugin","version":"0.1.0","description":"Webpack/Rspack plugin that stubs out @atlaskit/tokens theme imports to prevent @atlaskit-internal_* theme chunk files from being emitted into the build output.","main":"./dist/index.js","types":"./dist/index.d.ts","exports":{".":{"require":"./dist/index.js","import":"./dist/index.js","types":"./dist/index.d.ts"}},"license":"Apache-2.0","scripts":{"prepublishOnly":"npm run build","build":"tsc -p tsconfig.build.json","verify":"tsc -p tsconfig.json --noEmit","test":"jest","test:ci":"jest --ci --silent --runInBand"},"repository":{"type":"git","url":"git+ssh://git@bitbucket.org/atlassianlabs/fe-server.git","directory":"packages/atlaskit-theme-excluded-webpack-plugin"},"publishConfig":{"registry":"https://packages.atlassian.com/api/npm/npm-public/"},"devDependencies":{"@atlaskit/dropdown-menu":"^16.8.9","@atlaskit/modal-dialog":"^14.3.2","@atlaskit/popup":"^4.17.0","@babel/preset-env":"^7.28.3","@babel/preset-react":"^7.27.1","@rspack/core":"1.7.4","babel-loader":"^10.0.0","css-loader":"5.2.7","webpack":"5.105.4"},"keywords":["atlaskit","atlassian","theme","webpack","rspack","plugin","dc","data-center"],"gitHead":"805e0888bfb7dcfb07c7369e2d1e11843b758986","_id":"@atlassian/atlaskit-theme-excluded-webpack-plugin@0.1.0","bugs":{"url":"https://bitbucket.org/atlassianlabs/fe-server/issues"},"homepage":"https://bitbucket.org/atlassianlabs/fe-server#readme","_integrity":"sha512-LCC9cLjgNoRwUgc4gBbbvY32v7Plep86Q0POthwuqWsOo2GjQ9jmHaphR9D0Auq4QsflN5QVSdYkTmzFFbhkQQ==","_resolved":"/tmp/package-1-6a02c16c-58537d46b3862eecb348060a-1.tgz","_from":"file:/tmp/package-1-6a02c16c-58537d46b3862eecb348060a-1.tgz","_nodeVersion":"20.20.2","_npmVersion":"10.8.2","dist":{"integrity":"sha512-LCC9cLjgNoRwUgc4gBbbvY32v7Plep86Q0POthwuqWsOo2GjQ9jmHaphR9D0Auq4QsflN5QVSdYkTmzFFbhkQQ==","shasum":"0b6906b071426798ac0fa2a8a3b793422148bfa9","tarball":"https://registry.npmjs.org/@atlassian/atlaskit-theme-excluded-webpack-plugin/-/atlaskit-theme-excluded-webpack-plugin-0.1.0.tgz","fileCount":9,"unpackedSize":7255,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIG1VS1qEONQonUWXgnkKXEuWxXHE2OBdJRAwP1rnAAbbAiA2Ndh+ScgVlTBM6+f/8U5N27NlyY4mBzxWwr23095UvA=="}]},"_npmUser":{"name":"atlassianartifactteam","email":"eng-development-tooling-artifacts@atlassian.com"},"directories":{},"maintainers":[{"name":"atlassianartifactteam","email":"eng-development-tooling-artifacts@atlassian.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/atlaskit-theme-excluded-webpack-plugin_0.1.0_1778565487172_0.809069581286886"},"_hasShrinkwrap":false}},"time":{"created":"2026-05-12T05:58:07.047Z","0.1.0":"2026-05-12T05:58:07.357Z","modified":"2026-05-12T05:58:07.614Z"},"maintainers":[{"name":"atlassianartifactteam","email":"eng-development-tooling-artifacts@atlassian.com"}],"description":"Webpack/Rspack plugin that stubs out @atlaskit/tokens theme imports to prevent @atlaskit-internal_* theme chunk files from being emitted into the build output.","homepage":"https://bitbucket.org/atlassianlabs/fe-server#readme","keywords":["atlaskit","atlassian","theme","webpack","rspack","plugin","dc","data-center"],"repository":{"type":"git","url":"git+ssh://git@bitbucket.org/atlassianlabs/fe-server.git","directory":"packages/atlaskit-theme-excluded-webpack-plugin"},"bugs":{"url":"https://bitbucket.org/atlassianlabs/fe-server/issues"},"license":"Apache-2.0","readme":"# @atlassian/atlaskit-theme-excluded-webpack-plugin\n\nPrevents `@atlaskit/tokens` from emitting `@atlaskit-internal_*` theme chunk files into the webpack/rspack build output.\n\n## Why?\n\nNew Atlaskit components (e.g. `@atlaskit/modal-dialog`, `@atlaskit/popup`) use `@atlaskit/tokens` for theming. Internally, `@atlaskit/tokens` uses dynamic imports that cause webpack to emit separate chunk files for each theme:\n\n```\n@atlaskit-internal_atlassian-dark.bundle.js\n@atlaskit-internal_atlassian-light.bundle.js\n@atlaskit-internal_atlassian-custom-theme.bundle.js\n...\n```\n\nIn Atlassian Data Center (DC) plugins, themes are loaded globally by the host application and must not be bundled. This plugin stubs out the theme imports so webpack never creates those chunks.\n\n## Usage\n\n```js\nconst { AtlaskitThemeExcludePlugin } = require('@atlassian/atlaskit-theme-excluded-webpack-plugin');\n\nmodule.exports = {\n  plugins: [new AtlaskitThemeExcludePlugin()],\n};\n```\n\nWorks with both webpack 5 and rspack.\n","readmeFilename":"README.md","_rev":"1-8f34c87e81087066e2868b5a2b7fa9a4"}