Babel preset for ThinkJS 3.x, bundling @babel/preset-env and @babel/plugin-transform-runtime. Current stable version is 2.0.0. Release cadence is low, tied to ThinkJS 3.x maintenance. Key differentiator: preconfigured for ThinkJS projects with sensible defaults (target node 8, core-js 2, useBuiltIns 'usage'). Alternative to manually configuring Babel presets.
npm install babel-preset-think-nodeNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Install the preset, configure .babelrc, and run babel CLI to transpile a JavaScript file.
Use @babel/preset-env directly or consider a more modern preset like @babel/preset-react for React projects.
Pass targets as preset options, e.g., targets: { node: 'current' }Set corejs: 3 in preset options and install core-js@3.
Update both packages: npm install babel-preset-think-node@latest @babel/core@latest
npm install --save-dev @babel/preset-env