Skip to content

New build#296

Merged
timea-solid merged 2 commits into
stagingfrom
fixBuild
Jun 19, 2026
Merged

New build#296
timea-solid merged 2 commits into
stagingfrom
fixBuild

Conversation

@timea-solid

Copy link
Copy Markdown
Member

This is a better handling of the new authn lib when packaging. It makes jest tests work in other libs.

Copilot AI review requested due to automatic review settings June 19, 2026 08:52
@timea-solid timea-solid merged commit 264b952 into staging Jun 19, 2026
8 checks passed

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates build and test tooling to better accommodate the new @uvdsl/solid-oidc-client-browser authn dependency during packaging, with the goal of improving Jest compatibility when this package is consumed by other libraries.

Changes:

  • Adjust Webpack externals/output settings (including disabling publicPath auto-detection) and add externals for the new authn library.
  • Change TypeScript build to emit declarations only; adjust post-build cleanup accordingly.
  • Update Jest/Babel configuration to better handle ESM dependencies in node_modules (including import.meta transforms).

Reviewed changes

Copilot reviewed 4 out of 5 changed files in this pull request and generated 5 comments.

Show a summary per file
File Description
webpack.config.mjs Adds OIDC client externals; tweaks output/publicPath and optimization settings for bundling behavior.
package.json Switches build-js to declaration-only emit; adds Babel plugin dependency; extends postbuild cleanup.
package-lock.json Locks babel-plugin-transform-import-meta dependency.
jest.config.mjs Allows transforming select ESM node_modules packages; broadens moduleNameMapper for OIDC client mocks.
babel.config.mjs Adds babel-plugin-transform-import-meta plugin for Jest/Babel transforms.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread webpack.config.mjs
Comment on lines +14 to +25
'@uvdsl/solid-oidc-client-browser': {
commonjs: '@uvdsl/solid-oidc-client-browser',
commonjs2: '@uvdsl/solid-oidc-client-browser',
amd: '@uvdsl/solid-oidc-client-browser',
root: 'SolidOidcClientBrowser'
},
'@uvdsl/solid-oidc-client-browser/core': {
commonjs: '@uvdsl/solid-oidc-client-browser/core',
commonjs2: '@uvdsl/solid-oidc-client-browser/core',
amd: '@uvdsl/solid-oidc-client-browser/core',
root: 'SolidOidcClientBrowserCore'
}
Comment thread webpack.config.mjs
output: {
path: path.resolve(process.cwd(), 'dist'),
filename: 'solid-logic.js',
publicPath: '',
Comment thread webpack.config.mjs
output: {
path: path.resolve(process.cwd(), 'dist'),
filename: 'solid-logic.min.js',
publicPath: '',
Comment thread webpack.config.mjs
output: {
path: path.resolve(process.cwd(), 'dist'),
filename: 'solid-logic.esm.js',
publicPath: '',
Comment thread webpack.config.mjs
output: {
path: path.resolve(process.cwd(), 'dist'),
filename: 'solid-logic.esm.min.js',
publicPath: '',
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Ready

Development

Successfully merging this pull request may close these issues.

2 participants