{"id":18129,"library":"atlaspack","title":"Atlaspack","description":"Atlaspack is a blazing fast, zero-configuration web application bundler for JavaScript, TypeScript, CSS, HTML, and assets. Version 2.14.4 (latest stable) follows a rapid release cadence with frequent patch releases. It is a fork of Parcel v2 by Atlassian Labs, offering performance improvements, native Rust plugin system, and multi-threaded compilation. Key differentiators: no configuration required, built-in support for TypeScript, JSX, CSS modules, images, and fonts, with a focus on developer experience and build speed. It is ESM-only and ships TypeScript types.","status":"active","version":"2.0.47","language":"javascript","source_language":"en","source_url":"https://github.com/atlassian-labs/atlaspack","tags":["javascript","typescript"],"install":[{"cmd":"npm install atlaspack","lang":"bash","label":"npm"},{"cmd":"yarn add atlaspack","lang":"bash","label":"yarn"},{"cmd":"pnpm add atlaspack","lang":"bash","label":"pnpm"}],"dependencies":[{"reason":"Rust-based native core for performance","package":"@atlaspack/rust","optional":false},{"reason":"Logging infrastructure","package":"@atlaspack/logger","optional":false},{"reason":"Shared utilities","package":"@atlaspack/utils","optional":false}],"imports":[{"note":"ESM-only since v2; use `import` not `require`","wrong":"const Parcel = require('atlaspack')","symbol":"Parcel","correct":"import { Parcel } from 'atlaspack'"},{"note":"Exported from main entry, not subpath","wrong":"import createWorkerFarm from 'atlaspack/workers'","symbol":"createWorkerFarm","correct":"import { createWorkerFarm } from 'atlaspack'"},{"note":"Named export, not default; CJS not supported","wrong":"const config = require('atlaspack').config","symbol":"config","correct":"import { config } from 'atlaspack'"},{"note":"BuildError moved to @atlaspack/core in v2.10+","wrong":"import { BuildError } from 'atlaspack'","symbol":"BuildError","correct":"import { BuildError } from '@atlaspack/core'"}],"quickstart":{"code":"import { Parcel } from 'atlaspack';\n\nconst bundler = new Parcel({\n  entries: 'src/index.html',\n  defaultConfig: '@atlaspack/config-default',\n  targets: {\n    default: {\n      distDir: './dist',\n      engines: { browsers: '> 0.5%, last 2 versions' }\n    }\n  },\n  mode: 'production',\n  logLevel: 'info',\n  profile: false,\n  patchConsole: true\n});\n\nbundler.run().then(() => {\n  console.log('Build complete');\n}).catch(err => {\n  console.error(err);\n});","lang":"typescript","description":"Initializes and runs Atlaspack in production mode with a single HTML entry point and browser targets."},"warnings":[{"fix":"Migrate to ESM imports; use `import` instead of `require()`. If you need CJS, use bundler shims or stick to v1 (parcel).","message":"Atlaspack v2 is ESM-only, dropping CommonJS support.","severity":"breaking","affected_versions":">=2.0.0"},{"fix":"Change import to `import { BuildError } from '@atlaspack/core'`.","message":"`BuildError` moved from `atlaspack` to `@atlaspack/core` in v2.10.0.","severity":"breaking","affected_versions":">=2.10.0"},{"fix":"Use `import { WorkerFarm } from '@atlaspack/workers'` and instantiate via `new WorkerFarm()`.","message":"`createWorkerFarm` is deprecated in favor of import from `@atlaspack/workers` directly.","severity":"deprecated","affected_versions":">=2.12.0"},{"fix":"Ensure all plugins are ESM or use dynamic import wrappers.","message":"Plugin development requires ESM-compatible plugins; CJS plugins will not be loaded.","severity":"gotcha","affected_versions":">=2.0.0"},{"fix":"Install matching prebuilt binaries or compile from source; check platform compatibility in docs.","message":"Atlaspack's Rust-powered worker pool may cause issues on non-x86_64 architectures like ARM (e.g., Apple M1).","severity":"gotcha","affected_versions":">=2.0.0"},{"fix":"Add `@atlaspack/config-default` to your `package.json` dependencies.","message":"Default config (`@atlaspack/config-default`) is required and must be installed explicitly as a dependency.","severity":"gotcha","affected_versions":">=2.0.0"}],"env_vars":null,"last_verified":"2026-04-25T00:00:00.000Z","next_check":"2026-07-24T00:00:00.000Z","problems":[{"fix":"Run `npm install @atlaspack/config-default --save-dev`.","cause":"The default configuration package is not installed.","error":"Error: Cannot find module '@atlaspack/config-default'"},{"fix":"Replace `const { Parcel } = require('atlaspack')` with `import { Parcel } from 'atlaspack'`.","cause":"Using CommonJS `require` instead of ESM `import`.","error":"TypeError: atlaspack__WEBPACK_IMPORTED_MODULE_0__.Parcel is not a constructor"},{"fix":"Update import to `import { BuildError } from '@atlaspack/core'`.","cause":"BuildError moved to @atlaspack/core in v2.10+.","error":"Error: BuildError is not exported from atlaspack"}],"ecosystem":"npm","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}