unplugin-atscript weekly downloads statistics
By moostjs · npm · Webpack plugins
Atscript: Configuration and build plugins.
unplugin-atscript has 3,291 recorded weekly downloads on npm, an increase of 143% over the past 30 days, ranking #1696 of 3,247 tracked listings.
About unplugin-atscript
Build tool plugin that compiles .as files during development. Works with Vite, Webpack, Rollup, Rolldown, esbuild, Rspack, and Farm via Unplugin.
Installation
pnpm add -D unplugin-atscript @atscript/typescript @atscript/core
Quick Start
// vite.config.ts
import atscript from 'unplugin-atscript/vite'
export default { plugins: [atscript()] }
// rollup.config.js
import atscript from 'unplugin-atscript/rollup'
export default { plugins: [atscript()] }
// webpack.config.js
const atscript = require('unplugin-atscript/webpack')
module.exports = { plugins: [atscript()] }
Also available: unplugin-atscript/esbuild, unplugin-atscript/rolldown, unplugin-atscript/rspack, unplugin-atscript/farm.
Options
Same options on every bundler entry:
| Option | Type | Default | Effect |
|---|---|---|---|
strict | boolean | true | Fail the build on parse/diagnostic errors. false = log errors but keep building. |
root | string | bundler root or cwd | Directory atscript.config.* is discovered from (searching upward). Absolute, or relative to the cwd. |
Vite picks the root up automatically (from configResolved); other bundlers need root when the working directory is not the project root.
root is not the config's rootDir: a relative rootDir is relative to the config file's directory, and a config without one uses that directory — the same folder asc and the editor use. Without a config file, root is the project root.
Features
- Universal bundler support via dedicated entry points
- Automatic
atscript.config.*loading - Strict validation — build fails on
.aserrors by default (strict: falseto disable) - Tree-shaking aware — marks non-mutating modules as side-effect-free
- On Vite, prebundles
@atscript/typescript/utilsso the first.as-backed route does not trigger a dep re-optimization reload - Watch-safe in dev — a changed
.asfile is dropped from the document cache and every transitive.asimport is registered as a watch file, so dependants are re-checked against the new definition on the next reload (esbuild excepted: unplugin has nowatchChangefor it, so under esbuild watch a changed.asimport still needs a restart)
Documentation
License
MIT
Description from the npm listing.
- annotations
- atscript
- esbuild-plugin
- rolldown-plugin
- rollup-plugin
- rspack-plugin
- unplugin
- vite-plugin
- webpack-plugin
README badge
Show your rank in a README or on your website. The badge updates automatically.
Charts
Images: 30d · 1y · all time · 1600×900 dark
Adoption over time
7/30/90-day growth
Ranking history
Listing placement
Listing placement
Filled points are observed values; hollow points come from Internet Archive snapshots of the listing page. Dashed segments span periods with no observations — values between points are not interpolated.
Each band is one page of 20. Weekly downloads on a linear scale. Placement is projected from weekly downloads, so it can differ from the marketplace's own sort order. Hover a dot to see the listing.
Recent observations
Full history (170)Similar npm Webpack plugins plugins
All 20 unplugin-atscript alternativesData source
Weekly downloads (trailing 7 complete days) come from the official npm downloads API. Downloads include CI and mirrors and are not equivalent to installs or users. npm publishes no ratings.
Listing: https://www.npmjs.com/package/unplugin-atscript. First seen Oct 16, 2026; last successful collection Dec 6, 2026. See the methodology.