diff --git a/.changeset/pink-jokes-destroy.md b/.changeset/pink-jokes-destroy.md new file mode 100644 index 00000000000..4fac49a0a2e --- /dev/null +++ b/.changeset/pink-jokes-destroy.md @@ -0,0 +1,5 @@ +--- +'@primer/react': patch +--- + +Update bundle to not inline @github dependencies diff --git a/package.json b/package.json index 26e56ca3e26..ad8d4d2010e 100644 --- a/package.json +++ b/package.json @@ -63,7 +63,6 @@ "codemods", "dist", "lib", - "lib/node_modules", "lib-esm", "index.d.ts", "drafts/package.json", diff --git a/rollup.config.js b/rollup.config.js index ec58edd9d47..d6124961423 100644 --- a/rollup.config.js +++ b/rollup.config.js @@ -46,10 +46,10 @@ const baseConfig = { babelHelpers: 'inline', babelrc: false }), + commonjs(), resolve({ extensions - }), - commonjs() + }) ] } @@ -69,11 +69,7 @@ export default [ // CommonJS { ...baseConfig, - external: isExternal( - external.filter(id => { - return !id.startsWith('@github') - }) - ), + external: isExternal(external), output: { dir: 'lib', format: 'commonjs',