This repository was archived by the owner on Jan 30, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 5 files changed +5
-5
lines changed
Expand file tree Collapse file tree 5 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ import * as fs from 'fs';
44import * as path from 'path' ;
55import { isServer } from './helper' ;
66
7- export const buildIn = async ( styleSheet : string , global ?: string ) : Promise < void > => {
7+ export const buildIn = ( styleSheet : string , global ?: string ) : void => {
88 const styleFilePath = path . join ( __dirname , '../../core/styles/style.module.css' ) ;
99 const globalFilePath = path . join ( __dirname , '../../core/styles/global.css' ) ;
1010
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ function createGlobalStyleSheetPromise() {
1515}
1616
1717async function executeBuildIn ( styleSheet : string ) : Promise < void > {
18- if ( ! isDevelopment && styleSheet ) await buildIn ( styleSheet ) ;
18+ if ( ! isDevelopment && styleSheet ) buildIn ( styleSheet ) ;
1919}
2020
2121async function processStyleSheets ( ) {
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ function createGlobalStyleSheetPromise() {
1515}
1616
1717async function executeBuildIn ( styleSheet : string , option ?: string ) : Promise < void > {
18- if ( ! isDevelopment && styleSheet ) await buildIn ( styleSheet , option ) ;
18+ if ( ! isDevelopment && styleSheet ) buildIn ( styleSheet , option ) ;
1919}
2020
2121async function processStyleSheets ( ) {
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ function createGlobalStyleSheetPromise() {
1212export async function rootBuildIn ( ) : Promise < void > {
1313 if ( typeof globalStyleSheetPromise === 'undefined' ) createGlobalStyleSheetPromise ( ) ;
1414 const [ styleSheet , option ] = await globalStyleSheetPromise ;
15- if ( ! isDevelopment && styleSheet ) await buildIn ( styleSheet , option ) ;
15+ if ( ! isDevelopment && styleSheet ) buildIn ( styleSheet , option ) ;
1616 createGlobalStyleSheetPromise ( ) ;
1717}
1818
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ function createGlobalStyleSheetPromise() {
1515}
1616
1717async function executeBuildIn ( styleSheet : string ) : Promise < void > {
18- if ( ! isDevelopment && styleSheet ) await buildIn ( styleSheet ) ;
18+ if ( ! isDevelopment && styleSheet ) buildIn ( styleSheet ) ;
1919}
2020
2121async function processStyleSheets ( ) {
You can’t perform that action at this time.
0 commit comments