diff --git a/packages/build-next-bricks/src/buildStories.js b/packages/build-next-bricks/src/buildStories.js index 93f18b622a..cb3a26097e 100644 --- a/packages/build-next-bricks/src/buildStories.js +++ b/packages/build-next-bricks/src/buildStories.js @@ -32,6 +32,9 @@ function getBuildStoriesWebpackConfig(packageDir, storiesPath) { test: /\.ts?$/, loader: "babel-loader", exclude: /node_modules/, + options: { + rootMode: "upward", + }, }, { test: /\.svg$/i,