Skip to content

Commit 2721b4f

Browse files
Apply suggestions from code review
Co-authored-by: Aaron Casanova <32409546+aaronccasanova@users.noreply.github.com>
1 parent 1d1183b commit 2721b4f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

polaris-react/config/rollup/namespaced-classname.mjs

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ const COMPONENT_REGEX = /^[A-Z]\w+$/;
66
const SUBCOMPONENT_VARIATION_SELECTOR = /^\w+-\w+$/;
77
const NESTED_COMPONENT_PATH_REGEX = /.*\/components\/(.*)\/components/;
88

9-
export const generateScopedName = function generateScopedName({
9+
export function generateScopedName({
1010
includeHash = false,
1111
} = {}) {
1212
return (name, filename) => {

polaris-react/vite.config.mjs

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import {defineConfig} from 'vite';
77
import {generateScopedName} from './config/rollup/namespaced-classname.mjs';
88

99
const pkg = JSON.parse(
10-
readFileSync(new URL('./package.json', import.meta.url).pathname),
10+
readFileSync(new URL('./package.json', import.meta.url)),
1111
);
1212

1313
// eslint-disable-next-line import/no-default-export

0 commit comments

Comments
 (0)