Skip to content

Commit

Permalink
fix(webpack): Stylus loader path (#22373)
Browse files Browse the repository at this point in the history
  • Loading branch information
ndcunningham authored Mar 18, 2024
1 parent 3c72acd commit 55f31cf
Showing 1 changed file with 12 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,10 @@ export function applyWebConfig(
use: [
...getCommonLoadersForCssModules(options, includePaths),
{
loader: path.join(__dirname, 'webpack/deprecated-stylus-loader.js'),
loader: path.join(
__dirname,
'../../../utils/webpack/deprecated-stylus-loader.js'
),
options: {
stylusOptions: {
include: includePaths,
Expand Down Expand Up @@ -230,7 +233,10 @@ export function applyWebConfig(
use: [
...getCommonLoadersForGlobalCss(options, includePaths),
{
loader: path.join(__dirname, 'webpack/deprecated-stylus-loader.js'),
loader: path.join(
__dirname,
'../../../utils/webpack/deprecated-stylus-loader.js'
),
options: {
sourceMap: !!options.sourceMap,
stylusOptions: {
Expand Down Expand Up @@ -291,7 +297,10 @@ export function applyWebConfig(
use: [
...getCommonLoadersForGlobalStyle(options, includePaths),
{
loader: require.resolve('stylus-loader'),
loader: path.join(
__dirname,
'../../../utils/webpack/deprecated-stylus-loader.js'
),
options: {
sourceMap: !!options.sourceMap,
stylusOptions: {
Expand Down

0 comments on commit 55f31cf

Please sign in to comment.