Skip to content
Merged
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -138,12 +138,12 @@ module.exports = {

return {
ImportDeclaration(node) {
if (isImportSourceEquals(/^@leafygreen-ui/, node)) {
if (isImportSourceEquals(/^@(leafygreen-ui|lg-chat)/, node)) {
reportLeafygreenUsage(context, node, node.source);
}
},
CallExpression(node) {
if (isRequireSourceEquals(/^@leafygreen-ui/, node)) {
if (isRequireSourceEquals(/^@(leafygreen-ui|lg-chat)/, node)) {
reportLeafygreenUsage(context, node, node.arguments[0]);
}
},
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export const PRIMARY_BUTTON_INTERACTIVE_GREEN = '#00593F';
19 changes: 15 additions & 4 deletions configs/webpack-config-compass/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,17 @@ const sharedResolveOptions = (
'index.js'
),

// TODO: document what's going on here
'@leafygreen-ui/button/constants': path.resolve(
__dirname,
'..',
'polyfills',
'@leafygreen-ui',
'button',
'constants',
'index.js'
),

// This is an optional dependency of the AWS SDK that doesn't look like
// an optional dependency to webpack because it's not wrapped in try/catch.
'@aws-sdk/client-sso-oidc': false,
Expand Down Expand Up @@ -276,10 +287,10 @@ export function createElectronRendererConfig(
writeToDisk: true,
},
client: {
overlay:
process.env.DISABLE_DEVSERVER_OVERLAY === 'true'
? false
: { warnings: false, errors: true, runtimeErrors: true },
overlay: {
errors: true,
warnings: false,
},
},
https: false,
hot: opts.hot,
Expand Down
Loading