@forsakringskassan/vite-lib-config 5.3.2 → 5.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -5863,6 +5863,9 @@ async function getConfigFiles(configFiles) {
5863
5863
  const result = await findUp("api-extractor.json");
5864
5864
  return result ? [result] : [];
5865
5865
  }
5866
+ function isStaticAsset(modname) {
5867
+ return /\.(?:s?css|sass|less|styl|stylus|pcss|sss)$/.test(modname);
5868
+ }
5866
5869
  async function findReferencedFiles(filename, visited) {
5867
5870
  if (visited.has(filename)) {
5868
5871
  return;
@@ -5875,6 +5878,9 @@ async function findReferencedFiles(filename, visited) {
5875
5878
  if (!modname.startsWith(".")) {
5876
5879
  continue;
5877
5880
  }
5881
+ if (isStaticAsset(modname)) {
5882
+ continue;
5883
+ }
5878
5884
  const relPath = path3.join(path3.dirname(filename), modname);
5879
5885
  if (existsSync(relPath)) {
5880
5886
  const stat = await fs3.stat(relPath);
@@ -6013,5 +6019,6 @@ only.
6013
6019
  }
6014
6020
  }
6015
6021
  export {
6022
+ isStaticAsset,
6016
6023
  run
6017
6024
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@forsakringskassan/vite-lib-config",
3
- "version": "5.3.2",
3
+ "version": "5.4.0",
4
4
  "description": "Försäkringskassan toolchain to build libraries with Vite",
5
5
  "keywords": [
6
6
  "vite"