Skip to content

Commit 05e9e67

Browse files
committed
Fix sass build
1 parent 934fdef commit 05e9e67

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

config/rollup/classname.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,6 @@ export default function getClassName(localName, filePath) {
1919
className = componentName === localName
2020
? polarisComponentName
2121
: subcomponentClassName(polarisComponentName, localName);
22-
23-
// cache.lastComponent = className;
2422
} else if (SUBCOMPONENT_VARIATION_SELECTOR.test(localName)) {
2523
const [subcomponent, variation] = localName.split('-');
2624
const subcomponentName = subcomponentClassName(polarisComponentName, subcomponent);

scripts/sass-build.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,10 @@ export default function generateSassBuild() {
3535
writeFileSync(filePath, removeSassImports(source));
3636
});
3737

38+
const globalFile = join(buildStyles, 'global.scss');
39+
const globalSource = readFileSync(globalFile, 'utf8');
40+
writeFileSync(globalFile, removeSassImports(globalSource));
41+
3842
glob.sync(resolve(intermediateBuild, './components/**/*.scss')).forEach((filePath) => {
3943
const componentSass = resolve(components, basename(filePath));
4044
let file = readFileSync(filePath, 'utf8');

0 commit comments

Comments
 (0)