{"id":12849,"library":"aurelia-deps-finder","title":"Aurelia v1 Dependency Finder for Dumber","description":"`aurelia-deps-finder` is a utility package specifically designed to assist the `dumber` bundler in identifying and resolving dependencies within Aurelia v1 projects. It provides a specialized `depsFinder` function that `dumber` integrates into its bundling process to correctly map modules and their interdependencies within an Aurelia v1 application's structure. The current stable version is 2.1.7. This package is explicitly *not* required for Aurelia 2 (vNext) projects, as Aurelia 2 utilizes different dependency resolution mechanisms or leverages modern bundler capabilities directly, making this tool obsolete for newer versions of the framework. Its release cadence is tightly coupled to the maintenance of the Aurelia v1 ecosystem. Its key differentiator is its specialized, deep understanding of Aurelia v1's unique module loading patterns, making it an essential component for legacy build setups using `dumber` for Aurelia v1 applications.","status":"maintenance","version":"2.1.7","language":"javascript","source_language":"en","source_url":"https://github.com/dumberjs/aurelia-deps-finder","tags":["javascript","aurelia","dumber","bundler"],"install":[{"cmd":"npm install aurelia-deps-finder","lang":"bash","label":"npm"},{"cmd":"yarn add aurelia-deps-finder","lang":"bash","label":"yarn"},{"cmd":"pnpm add aurelia-deps-finder","lang":"bash","label":"pnpm"}],"dependencies":[{"reason":"Runtime dependency; this package provides a dependency finder function that is passed directly to the `dumber` bundler.","package":"dumber","optional":false}],"imports":[{"note":"This package is exclusively CommonJS and intended for Node.js build environments, not browser or ESM contexts.","wrong":"import auDepsFinder from 'aurelia-deps-finder';","symbol":"auDepsFinder","correct":"const auDepsFinder = require('aurelia-deps-finder');"}],"quickstart":{"code":"const gulp = require('gulp');\nconst dumber = require('gulp-dumber');\nconst auDepsFinder = require('aurelia-deps-finder');\n\nfunction build() {\n  const dr = dumber({\n    // Use aurelia-deps-finder to resolve Aurelia v1 dependencies\n    depsFinder: auDepsFinder\n  });\n\n  return gulp.src('src/**/*.@(js|ts|html|css)', { sourcemaps: true })\n    .pipe(dr())\n    .pipe(gulp.dest('dist', { sourcemaps: true }));\n}\n\ngulp.task('default', build);","lang":"javascript","description":"This quickstart demonstrates how to integrate `aurelia-deps-finder` into a `gulp-dumber` build process for an Aurelia v1 application."},"warnings":[{"fix":"For Aurelia 2, remove `aurelia-deps-finder` from your build configuration. Aurelia 2 handles dependency resolution natively or through standard bundler plugins.","message":"This package is specifically designed for Aurelia v1 projects. Do NOT use it with Aurelia 2 (vNext) or any future versions of Aurelia, as it's not compatible and will likely cause build failures.","severity":"gotcha","affected_versions":">=1.0.0"},{"fix":"Ensure you are using CommonJS `require` syntax: `const auDepsFinder = require('aurelia-deps-finder');`. Configure your bundler or TypeScript `tsconfig.json` to properly handle CommonJS modules if mixing with ESM.","message":"This package is CommonJS-only. Attempting to import it using ES module syntax (e.g., `import auDepsFinder from 'aurelia-deps-finder';`) in a pure ESM environment or a misconfigured TypeScript project will result in errors.","severity":"breaking","affected_versions":">=1.0.0"}],"env_vars":null,"last_verified":"2026-04-19T00:00:00.000Z","next_check":"2026-07-18T00:00:00.000Z","problems":[{"fix":"Use the CommonJS `require` syntax: `const auDepsFinder = require('aurelia-deps-finder');`. This package exports a single function directly.","cause":"This error typically occurs when trying to use an ES module default import (`import auDepsFinder from 'aurelia-deps-finder';`) for a CommonJS module that exports directly, rather than through `module.exports.default`.","error":"TypeError: (0 , _aureliaDepsFinder.default) is not a function"}],"ecosystem":"npm","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null}