Registry / devops / arco-scripts-babel-config

arco-scripts-babel-config

JSON →
library1.0.0jsnpmunverified

A shared Babel configuration package used internally by Arco scripts (from the Arco Design team) for compiling modern JavaScript/TypeScript. Version 1.0.0 is the initial stable release. It provides a preset-based setup optimized for React/TypeScript projects, typically consumed via `@arco-design/arco-scripts`. Requires `@babel/core` and related Babel plugins as peer dependencies. Key differentiators: tightly coupled with the Arco ecosystem; no standalone usage intended; minimal configuration overhead for Arco-based projects.

npm install arco-scripts-babel-config
INSTALL
IMPORT
SIG · ARCO-SCRIPTS-BABEL
A
arco-scripts-babel-config
devopsjavascriptv1.0.0
Install
Import
Disk
Pass rate
0/ 6
Env Coverage0 / 6
glibc
1822
musl
1822
Install & Compatibility
Where this runs
tested against v? · npm install
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
node 18226 runs
build_error
glibc
node 18226 runs
build_error
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

default
import babelConfig from 'arco-scripts-babel-config'
const babelConfig = require('arco-scripts-babel-config')
ESM-only package; CommonJS require() will fail. Use dynamic import() if needed in CJS context.
BabelConfig
import type { BabelConfig } from 'arco-scripts-babel-config'
import { BabelConfig } from 'arco-scripts-babel-config'
TypeScript type import only; not a runtime value.
getBabelConfig
import { getBabelConfig } from 'arco-scripts-babel-config'
Named export for fetching config with options; also ESM-only.

Shows default import and usage with options for custom targets.

import babelConfig from 'arco-scripts-babel-config'; // In .babelrc or babel.config.js: module.exports = babelConfig; // Or with options: import { getBabelConfig } from 'arco-scripts-babel-config'; const config = getBabelConfig({ targets: '> 0.25%, not dead' });
Debug
Known issues
gotchaPackage is ESM-only and cannot be required with CommonJS require().
fix
Use dynamic import() or ensure your project is set to ESM.
affects: >=1.0.0
gotchaThis package is intended for internal use by Arco scripts; standalone usage may lead to unexpected behavior.
fix
Use within an Arco Design project or fork the config.
affects: >=1.0.0
deprecatedNo breaking changes yet; version 1.0.0 is initial. Be aware that future versions may change export shapes.
fix
Pin version and check release notes before upgrading.
affects: >=1.0.0
Errors
Common errors & fixes
Error [ERR_REQUIRE_ESM]: require() of ES Module ... from ... not supported.
Using require() on an ESM-only package.
fix
Change to import or use dynamic import().
TypeError: Cannot read properties of undefined (reading 'presets')
Babel config not correctly applied after importing.
fix
Ensure the config object is passed as module.exports in babel.config.js.
Upgrade
Version history
1.0.0latest on npm
Audit
Dependencies
@babel/corerequiredPeer dependency required for Babel transformation.
Agent activity
13 hits · last 30 days
node
10
OpenAI (training)
1
Resources
arco-scripts-babel-config — npm install arco-scripts-babel-config · libregistry