# @cocos/scripting

> The next generation of build tool for Cocos engine.

Latest version **1.0.5** (published 2024-04-30) · MIT license · 0 weekly downloads

## Install

```sh
npm install @cocos/scripting
pnpm add @cocos/scripting
yarn add @cocos/scripting
bun add @cocos/scripting
```

## Health

**Score 25/100 (F)** — status: abandoned.

Positive: has types; esm support; no vulnerabilities.

Warnings: low downloads.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.5 |
| Published | 2024-04-30 |
| First published | 2024-04-30 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 155 |
| Unpacked size | 3 MB |
| Known vulnerabilities | 0 (+14 in 9 direct dependencies) |
| Install scripts | no |
| GitHub stars | 1 |
| Author | cocos |
| Maintainers | cocos-creator, pp_pro, shrinktofit, devhacker520 |
| Keywords | cocos, engine, build, compile |

## Links

- npm: https://www.npmjs.com/package/@cocos/scripting
- Repository: https://github.com/cocos/cocos-scripting
- Homepage: https://github.com/cocos/cocos-scripting#readme
- Issues: https://github.com/cocos/cocos-scripting/issues
- npm.io page: https://npm.io/package/@cocos/scripting

## Dependencies (155)

- [ejs](https://npm.io/package/ejs.md) 3.1.9
- [tmp](https://npm.io/package/tmp.md) 0.1.0
- [glob](https://npm.io/package/glob.md) 8.1.0
- [path](https://npm.io/package/path.md) ~0.12.7
- [tfig](https://npm.io/package/tfig.md) 3.3.2
- [acorn](https://npm.io/package/acorn.md) 8.6.0
- [json5](https://npm.io/package/json5.md) ^2.2.3
- [urijs](https://npm.io/package/urijs.md) ^1.19.2
- [dedent](https://npm.io/package/dedent.md) 0.7.0
- [globby](https://npm.io/package/globby.md) 11.0.4
- [rollup](https://npm.io/package/rollup.md) 2.79.1
- [semver](https://npm.io/package/semver.md) ~7.5.3
- [resolve](https://npm.io/package/resolve.md) 1.22.1
- [unionfs](https://npm.io/package/unionfs.md) 4.4.0
- [winston](https://npm.io/package/winston.md) ^3.3.3
- [babelify](https://npm.io/package/babelify.md) ^10.0.0
- [fs-extra](https://npm.io/package/fs-extra.md) ~11.1.1
- [commander](https://npm.io/package/commander.md) ~11.0.0
- [minimatch](https://npm.io/package/minimatch.md) 3.1.2
- [node-uuid](https://npm.io/package/node-uuid.md) ^1.4.8
- [relateurl](https://npm.io/package/relateurl.md) 0.2.7
- [acorn-walk](https://npm.io/package/acorn-walk.md) 8.2.0
- [browserify](https://npm.io/package/browserify.md) ^16.5.0
- [node-fetch](https://npm.io/package/node-fetch.md) 2.6.0
- [source-map](https://npm.io/package/source-map.md) 0.7.3
- [typescript](https://npm.io/package/typescript.md) 4.9.5
- [@babel/core](https://npm.io/package/@babel/core.md) 7.19.6
- [@babel/types](https://npm.io/package/@babel/types.md) 7.19.4
- [magic-string](https://npm.io/package/magic-string.md) 0.25.7
- [whatwg-fetch](https://npm.io/package/whatwg-fetch.md) 3.0.0
- [@babel/parser](https://npm.io/package/@babel/parser.md) 7.19.6
- [@babel/helpers](https://npm.io/package/@babel/helpers.md) 7.19.4
- [@types/resolve](https://npm.io/package/@types/resolve.md) 1.20.2
- [core-js-bundle](https://npm.io/package/core-js-bundle.md) 3.3.4
- [@babel/template](https://npm.io/package/@babel/template.md) 7.18.10
- [@babel/traverse](https://npm.io/package/@babel/traverse.md) 7.19.6
- [@types/fs-extra](https://npm.io/package/@types/fs-extra.md) 9.0.13
- [core-js-builder](https://npm.io/package/core-js-builder.md) 3.4.1
- [proper-lockfile](https://npm.io/package/proper-lockfile.md) 4.1.2
- [@babel/generator](https://npm.io/package/@babel/generator.md) 7.19.6
- [@babel/highlight](https://npm.io/package/@babel/highlight.md) 7.18.6
- [@types/node-uuid](https://npm.io/package/@types/node-uuid.md) 0.0.28
- [cjs-module-lexer](https://npm.io/package/cjs-module-lexer.md) 1.2.2
- [@babel/code-frame](https://npm.io/package/@babel/code-frame.md) 7.18.6
- [@babel/preset-env](https://npm.io/package/@babel/preset-env.md) 7.16.4
- [winston-transport](https://npm.io/package/winston-transport.md) 4.4.0
- [@babel/compat-data](https://npm.io/package/@babel/compat-data.md) 7.19.4
- [@types/babel__core](https://npm.io/package/@types/babel__core.md) 7.1.20
- [source-map-support](https://npm.io/package/source-map-support.md) 0.5.16
- [@rollup/plugin-json](https://npm.io/package/@rollup/plugin-json.md) ^4.1.0
- [regenerator-runtime](https://npm.io/package/regenerator-runtime.md) 0.13.3
- [rollup-plugin-babel](https://npm.io/package/rollup-plugin-babel.md) ^4.3.3
- [@rollup/plugin-babel](https://npm.io/package/@rollup/plugin-babel.md) 6.0.3
- [javascript-stringify](https://npm.io/package/javascript-stringify.md) 2.1.0
- [rollup-plugin-terser](https://npm.io/package/rollup-plugin-terser.md) 7.0.2
- [@rollup/plugin-replace](https://npm.io/package/@rollup/plugin-replace.md) 4.0.0
- [@rollup/plugin-virtual](https://npm.io/package/@rollup/plugin-virtual.md) ^3.0.1
- [@types/babel__traverse](https://npm.io/package/@types/babel__traverse.md) 7.18.3
- [browserify-incremental](https://npm.io/package/browserify-incremental.md) ^3.1.1
- [concat-with-sourcemaps](https://npm.io/package/concat-with-sourcemaps.md) ^1.1.0
- [rollup-plugin-commonjs](https://npm.io/package/rollup-plugin-commonjs.md) ^10.1.0
- [@rollup/plugin-commonjs](https://npm.io/package/@rollup/plugin-commonjs.md) 16.0.0
- [@types/babel__generator](https://npm.io/package/@types/babel__generator.md) 7.6.4
- [babel-plugin-const-enum](https://npm.io/package/babel-plugin-const-enum.md) 1.2.0
- [@babel/plugin-syntax-jsx](https://npm.io/package/@babel/plugin-syntax-jsx.md) 7.7.4
- [rollup-plugin-sourcemaps](https://npm.io/package/rollup-plugin-sourcemaps.md) 0.4.2
- [rollup-plugin-visualizer](https://npm.io/package/rollup-plugin-visualizer.md) 5.9.2
- [@babel/plugin-syntax-flow](https://npm.io/package/@babel/plugin-syntax-flow.md) 7.18.6
- [@endo/cjs-module-analyzer](https://npm.io/package/@endo/cjs-module-analyzer.md) 0.2.11
- [@rollup/plugin-typescript](https://npm.io/package/@rollup/plugin-typescript.md) ~11.1.2
- [@babel/helper-plugin-utils](https://npm.io/package/@babel/helper-plugin-utils.md) 7.19.0
- [@rollup/plugin-multi-entry](https://npm.io/package/@rollup/plugin-multi-entry.md) 6.0.1
- [rollup-plugin-node-resolve](https://npm.io/package/rollup-plugin-node-resolve.md) ^5.2.0
- [@babel/helper-function-name](https://npm.io/package/@babel/helper-function-name.md) 7.19.0
- [@babel/helper-simple-access](https://npm.io/package/@babel/helper-simple-access.md) 7.19.4
- [@babel/helper-string-parser](https://npm.io/package/@babel/helper-string-parser.md) 7.19.4
- [@rollup/plugin-node-resolve](https://npm.io/package/@rollup/plugin-node-resolve.md) 13.0.6
- [@babel/helper-module-imports](https://npm.io/package/@babel/helper-module-imports.md) 7.18.6
- [@babel/helper-hoist-variables](https://npm.io/package/@babel/helper-hoist-variables.md) 7.18.6
- [@babel/helper-validator-option](https://npm.io/package/@babel/helper-validator-option.md) 7.18.6
- [@babel/plugin-transform-for-of](https://npm.io/package/@babel/plugin-transform-for-of.md) 7.18.8
- [@babel/plugin-transform-spread](https://npm.io/package/@babel/plugin-transform-spread.md) 7.16.0
- [@babel/helper-module-transforms](https://npm.io/package/@babel/helper-module-transforms.md) 7.19.6
- [@babel/plugin-syntax-decorators](https://npm.io/package/@babel/plugin-syntax-decorators.md) 7.19.0
- [@babel/plugin-syntax-typescript](https://npm.io/package/@babel/plugin-syntax-typescript.md) 7.18.6
- [@babel/plugin-transform-classes](https://npm.io/package/@babel/plugin-transform-classes.md) 7.16.0
- [@babel/helper-plugin-test-runner](https://npm.io/package/@babel/helper-plugin-test-runner.md) 7.16.0
- [@babel/plugin-transform-literals](https://npm.io/package/@babel/plugin-transform-literals.md) 7.16.0
- [@babel/helper-compilation-targets](https://npm.io/package/@babel/helper-compilation-targets.md) 7.19.3
- [@babel/helper-environment-visitor](https://npm.io/package/@babel/helper-environment-visitor.md) 7.18.9
- [@babel/plugin-syntax-json-strings](https://npm.io/package/@babel/plugin-syntax-json-strings.md) 7.8.3
- [@babel/helper-validator-identifier](https://npm.io/package/@babel/helper-validator-identifier.md) 7.19.1
- [@babel/plugin-transform-new-target](https://npm.io/package/@babel/plugin-transform-new-target.md) 7.16.0
- [@babel/plugin-transform-parameters](https://npm.io/package/@babel/plugin-transform-parameters.md) 7.16.3
- [@babel/plugin-transform-typescript](https://npm.io/package/@babel/plugin-transform-typescript.md) 7.14.6
- [@babel/plugin-proposal-json-strings](https://npm.io/package/@babel/plugin-proposal-json-strings.md) 7.16.0
- [@babel/plugin-syntax-dynamic-import](https://npm.io/package/@babel/plugin-syntax-dynamic-import.md) 7.8.3
- [@babel/plugin-transform-modules-amd](https://npm.io/package/@babel/plugin-transform-modules-amd.md) 7.16.0
- [@babel/plugin-transform-modules-umd](https://npm.io/package/@babel/plugin-transform-modules-umd.md) 7.16.0
- [@babel/plugin-transform-regenerator](https://npm.io/package/@babel/plugin-transform-regenerator.md) 7.16.0
- [@babel/plugin-syntax-top-level-await](https://npm.io/package/@babel/plugin-syntax-top-level-await.md) 7.14.5
- [@babel/plugin-transform-dotall-regex](https://npm.io/package/@babel/plugin-transform-dotall-regex.md) 7.16.0
- [@babel/plugin-transform-object-super](https://npm.io/package/@babel/plugin-transform-object-super.md) 7.16.0
- [@babel/plugin-transform-sticky-regex](https://npm.io/package/@babel/plugin-transform-sticky-regex.md) 7.16.0
- [@babel/plugin-proposal-dynamic-import](https://npm.io/package/@babel/plugin-proposal-dynamic-import.md) 7.16.0
- [@babel/plugin-syntax-async-generators](https://npm.io/package/@babel/plugin-syntax-async-generators.md) 7.8.4
- [@babel/plugin-syntax-class-properties](https://npm.io/package/@babel/plugin-syntax-class-properties.md) 7.12.13
- [@babel/plugin-transform-block-scoping](https://npm.io/package/@babel/plugin-transform-block-scoping.md) 7.16.0
- [@babel/plugin-transform-destructuring](https://npm.io/package/@babel/plugin-transform-destructuring.md) 7.16.0
- [@babel/plugin-transform-function-name](https://npm.io/package/@babel/plugin-transform-function-name.md) 7.16.0
- [@babel/plugin-transform-typeof-symbol](https://npm.io/package/@babel/plugin-transform-typeof-symbol.md) 7.16.0
- [@babel/plugin-transform-unicode-regex](https://npm.io/package/@babel/plugin-transform-unicode-regex.md) 7.16.0
- [@babel/helper-split-export-declaration](https://npm.io/package/@babel/helper-split-export-declaration.md) 7.18.6
- [@babel/plugin-proposal-private-methods](https://npm.io/package/@babel/plugin-proposal-private-methods.md) 7.16.0
- [@babel/plugin-syntax-numeric-separator](https://npm.io/package/@babel/plugin-syntax-numeric-separator.md) 7.10.4
- [@babel/plugin-syntax-optional-chaining](https://npm.io/package/@babel/plugin-syntax-optional-chaining.md) 7.8.3
- [@babel/plugin-transform-duplicate-keys](https://npm.io/package/@babel/plugin-transform-duplicate-keys.md) 7.16.0
- [@babel/plugin-transform-reserved-words](https://npm.io/package/@babel/plugin-transform-reserved-words.md) 7.16.0
- [@babel/plugin-proposal-class-properties](https://npm.io/package/@babel/plugin-proposal-class-properties.md) 7.18.6
- [@babel/plugin-syntax-class-static-block](https://npm.io/package/@babel/plugin-syntax-class-static-block.md) 7.14.5
- [@babel/plugin-syntax-object-rest-spread](https://npm.io/package/@babel/plugin-syntax-object-rest-spread.md) 7.8.3
- [@babel/plugin-transform-arrow-functions](https://npm.io/package/@babel/plugin-transform-arrow-functions.md) 7.16.0
- [@babel/plugin-transform-unicode-escapes](https://npm.io/package/@babel/plugin-transform-unicode-escapes.md) 7.16.0
- [@babel/plugin-proposal-numeric-separator](https://npm.io/package/@babel/plugin-proposal-numeric-separator.md) 7.16.0
- [@babel/plugin-proposal-optional-chaining](https://npm.io/package/@babel/plugin-proposal-optional-chaining.md) 7.18.9
- [@babel/plugin-transform-flow-strip-types](https://npm.io/package/@babel/plugin-transform-flow-strip-types.md) 7.19.0
- [@babel/plugin-transform-modules-commonjs](https://npm.io/package/@babel/plugin-transform-modules-commonjs.md) 7.19.6
- [@babel/plugin-transform-modules-systemjs](https://npm.io/package/@babel/plugin-transform-modules-systemjs.md) 7.16.0
- [@babel/plugin-proposal-class-static-block](https://npm.io/package/@babel/plugin-proposal-class-static-block.md) 7.16.0
- [@babel/plugin-proposal-object-rest-spread](https://npm.io/package/@babel/plugin-proposal-object-rest-spread.md) 7.16.0
- [@babel/plugin-transform-property-literals](https://npm.io/package/@babel/plugin-transform-property-literals.md) 7.16.0
- [@babel/plugin-transform-template-literals](https://npm.io/package/@babel/plugin-transform-template-literals.md) 7.16.0
- [@babel/plugin-syntax-export-namespace-from](https://npm.io/package/@babel/plugin-syntax-export-namespace-from.md) 7.8.3
- [@babel/plugin-transform-async-to-generator](https://npm.io/package/@babel/plugin-transform-async-to-generator.md) 7.16.0
- [@babel/helper-transform-fixture-test-runner](https://npm.io/package/@babel/helper-transform-fixture-test-runner.md) 7.19.4
- [@babel/plugin-syntax-optional-catch-binding](https://npm.io/package/@babel/plugin-syntax-optional-catch-binding.md) 7.8.3
- [@babel/plugin-transform-computed-properties](https://npm.io/package/@babel/plugin-transform-computed-properties.md) 7.16.0
- [@babel/plugin-proposal-export-namespace-from](https://npm.io/package/@babel/plugin-proposal-export-namespace-from.md) 7.16.0
- [@babel/plugin-transform-shorthand-properties](https://npm.io/package/@babel/plugin-transform-shorthand-properties.md) 7.16.0
- [@babel/plugin-proposal-optional-catch-binding](https://npm.io/package/@babel/plugin-proposal-optional-catch-binding.md) 7.16.0
- [@babel/plugin-proposal-unicode-property-regex](https://npm.io/package/@babel/plugin-proposal-unicode-property-regex.md) 7.16.0
- [@babel/plugin-transform-block-scoped-functions](https://npm.io/package/@babel/plugin-transform-block-scoped-functions.md) 7.16.0
- [@babel/plugin-syntax-private-property-in-object](https://npm.io/package/@babel/plugin-syntax-private-property-in-object.md) 7.14.5
- [@babel/plugin-transform-exponentiation-operator](https://npm.io/package/@babel/plugin-transform-exponentiation-operator.md) 7.16.0
- [@babel/plugin-proposal-async-generator-functions](https://npm.io/package/@babel/plugin-proposal-async-generator-functions.md) 7.16.4
- [@babel/plugin-syntax-nullish-coalescing-operator](https://npm.io/package/@babel/plugin-syntax-nullish-coalescing-operator.md) 7.8.3
- [@babel/plugin-proposal-private-property-in-object](https://npm.io/package/@babel/plugin-proposal-private-property-in-object.md) 7.16.0
- [@babel/plugin-syntax-logical-assignment-operators](https://npm.io/package/@babel/plugin-syntax-logical-assignment-operators.md) 7.10.4
- [@babel/helper-skip-transparent-expression-wrappers](https://npm.io/package/@babel/helper-skip-transparent-expression-wrappers.md) 7.18.9
- [@babel/plugin-proposal-nullish-coalescing-operator](https://npm.io/package/@babel/plugin-proposal-nullish-coalescing-operator.md) 7.18.6
- [@babel/plugin-transform-member-expression-literals](https://npm.io/package/@babel/plugin-transform-member-expression-literals.md) 7.16.0
- [@babel/plugin-proposal-logical-assignment-operators](https://npm.io/package/@babel/plugin-proposal-logical-assignment-operators.md) 7.18.9
- [@babel/plugin-transform-named-capturing-groups-regex](https://npm.io/package/@babel/plugin-transform-named-capturing-groups-regex.md) 7.16.0
- [@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining](https://npm.io/package/@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining.md) 7.16.0
- [@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression](https://npm.io/package/@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression.md) 7.16.2

## Alternatives

- [raw-loader](https://npm.io/package/raw-loader.md) — 4.3M weekly downloads
- [plop](https://npm.io/package/plop.md) — 1.4M weekly downloads
- [webpack-deadcode-plugin](https://npm.io/package/webpack-deadcode-plugin.md) — 80.3K weekly downloads
- [@storybook/preact-vite](https://npm.io/package/@storybook/preact-vite.md) — 54.2K weekly downloads
- [vite-plugin-transform](https://npm.io/package/vite-plugin-transform.md) — 2.4K weekly downloads

## Recent versions

- 1.0.5 (latest) — 2024-04-30
- 1.0.4 — 2024-04-30

## README

# Cocos Scripting Modules

Including all modules for building, executing, polyfilling, bundling scripts for Cocos Creator.

> [I am a maintainer of this repo](https://github.com/cocos/cocos-scripting/blob/master/README_MAINTAIN.md)

---
_Source: https://npm.io/package/@cocos/scripting · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
