diff --git a/gulpfile.js b/gulpfile.js index 0b7975fdb..437120cc0 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -33,11 +33,7 @@ function compileTs(modules = false) { '!src/**/*.test.{ts,tsx}', '!src/**/__snapshots__/**/*', ]) - .pipe( - replace(/import '.+\.scss';/g, (match) => - modules ? match.replace('.scss', '.css') : '', - ), - ) + .pipe(replace(/(import.+)\.scss/g, '$1.css')) .pipe(tsProject()) .pipe(dest(path.resolve(BUILD_DIR, modules ? 'esm' : 'cjs'))); }