{"name":"@vue/babel-preset-app","version":"5.0.9","description":"babel-preset-app for vue-cli","main":"index.js","publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+https://github.com/vuejs/vue-cli.git","directory":"packages/@vue/babel-preset-app"},"keywords":["vue","cli"],"author":{"name":"Evan You"},"license":"MIT","bugs":{"url":"https://github.com/vuejs/vue-cli/issues"},"homepage":"https://github.com/vuejs/vue-cli/tree/dev/packages/@vue/babel-preset-app#readme","dependencies":{"@babel/core":"^7.12.16","@babel/helper-compilation-targets":"^7.12.16","@babel/helper-module-imports":"^7.12.13","@babel/plugin-proposal-class-properties":"^7.12.13","@babel/plugin-proposal-decorators":"^7.12.13","@babel/plugin-syntax-dynamic-import":"^7.8.3","@babel/plugin-syntax-jsx":"^7.12.13","@babel/plugin-transform-runtime":"^7.12.15","@babel/preset-env":"^7.12.16","@babel/runtime":"^7.12.13","@vue/babel-plugin-jsx":"^1.0.3","@vue/babel-preset-jsx":"^1.1.2","babel-plugin-dynamic-import-node":"^2.3.3","core-js":"^3.8.3","core-js-compat":"^3.8.3","semver":"^7.3.4"},"peerDependencies":{"@babel/core":"*","core-js":"^3","vue":"^2 || ^3.2.13"},"peerDependenciesMeta":{"core-js":{"optional":true},"vue":{"optional":true}},"gitHead":"7eb93c169c7520935252e2473387f923ef80d856","_id":"@vue/babel-preset-app@5.0.9","_nodeVersion":"16.20.0","_npmVersion":"lerna/4.0.0/node@v16.20.0+arm64 (darwin)","dist":{"integrity":"sha512-0rKOF4s/AhaRMJLybxOCgXfwtYhO3pwDSL/q/W8wRs1LzmHAc77FyTXWlun6VyKiSKwSdtH7CvOiWqq+DfofdA==","shasum":"5a604e4911f63bbd92f438f305eb93a052ae2c68","tarball":"http://registry-npm.ywwl.com/@vue/babel-preset-app/download/@vue/babel-preset-app-5.0.9.tgz","fileCount":5,"unpackedSize":19433,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQCIswGKEthkcMmYdUUvi7V2aAuOkV5BIeIBmrJnCyeyIwIhAMlv3f2WLdgM8zIbZC+LWVxt5n+LlOQNrYvUwJrwVuyB"}],"size":6981,"noattachment":false,"key":"/@vue/babel-preset-app/-/@vue/babel-preset-app-5.0.9.tgz"},"_npmUser":{"name":"soda","email":"npm@haoqun.me"},"directories":{},"maintainers":[{"name":"akryum","email":"guillaume.b.chau@gmail.com"},{"name":"yyx990803","email":"yyx990803@gmail.com"},{"name":"soda","email":"npm@haoqun.me"},{"name":"nickmessing","email":"dot.nick.dot.messing@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/babel-preset-app_5.0.9_1755773822624_0.5102949906174417"},"_hasShrinkwrap":false,"readme":"# @vue/babel-preset-app\n\nThis is the default Babel preset used in all Vue CLI projects. **Note: this preset is meant to be used exclusively in projects created via Vue CLI and does not consider external use cases.**\n\n## Included Features\n\n### [@babel/preset-env](https://new.babeljs.io/docs/en/next/babel-preset-env.html)\n\n`preset-env` automatically determines the transforms and polyfills to apply based on your browser target. See [Browser Compatibility](https://cli.vuejs.org/guide/browser-compatibility.html) section in docs for more details.\n\n- `modules: false`\n  - auto set to `'commonjs'` in Jest tests\n- [`useBuiltIns: 'usage'`](#usebuiltins)\n- `targets`:\n  - by default `@babel/preset-env` will use [`browserslist config sources`](https://github.com/browserslist/browserslist#queries) (browserslist key in package.json file is recommend) unless either the [`targets`](https://babeljs.io/docs/en/babel-preset-env#targets) or [`ignoreBrowserslistConfig`](https://babeljs.io/docs/en/babel-preset-env#ignorebrowserslistconfig) options are set.\n  - set to `{ node: 'current' }` when running unit tests in Node.js\n- Includes `Promise` polyfill by default so that they are usable even in non-transpiled dependencies (only for environments that need it)\n\n### Stage 3 or Below\n\nOnly the following stage 3 or below features are supported (object rest spread is supported as part of `preset-env`):\n\n- [Dynamic Import Syntax](https://github.com/tc39/proposal-dynamic-import)\n- [Proposal Class Properties](https://babeljs.io/docs/en/next/babel-plugin-proposal-class-properties.html)\n- [Proposal Decorators (legacy)](https://babeljs.io/docs/en/next/babel-plugin-proposal-decorators.html)\n\nIf you need additional stage 3 or below features, you need to install and configure it yourself.\n\n### Vue JSX support\n\n- [@babel/plugin-syntax-jsx](https://github.com/babel/babel/tree/master/packages/babel-plugin-syntax-jsx)\n- [@vue/babel-preset-jsx](https://github.com/vuejs/jsx)\n\n### [@babel/plugin-transform-runtime](https://github.com/babel/babel/tree/master/packages/babel-plugin-transform-runtime)\n\n`transform-runtime` avoids inlining helpers in every file. This is enabled for helpers only, since polyfills are handled by `babel-preset-env`.\n\n## Options\n\n- All options from [@babel/preset-env](https://babeljs.io/docs/en/next/babel-preset-env.html) are supported, with some of them having smarter defaults.\n\n### modules\n\n- Default:\n  - `false` when building with webpack\n  - `'commonjs'` when running tests in Jest.\n\nExplicitly set `modules` option for `babel-preset-env`. See [babel-preset-env docs](https://github.com/babel/babel/tree/master/packages/babel-preset-env#modules) for more details.\n\n### targets\n\n- Default:\n  - `@vue/babel-preset-app` will use [`browserslist config sources`](https://github.com/browserslist/browserslist#queries) (browserslist key in package.json file is recommend) unless either the [`targets`](https://babeljs.io/docs/en/babel-preset-env#targets) or [`ignoreBrowserslistConfig`](https://babeljs.io/docs/en/babel-preset-env#ignorebrowserslistconfig) options are set.\n  - set to `{ node: 'current' }` when running unit tests in Node.js\n\nExplicitly set `targets` option for `babel-preset-env`. See [babel-preset-env docs](https://github.com/babel/babel/tree/master/packages/babel-preset-env#targets) for more details.\n\n### useBuiltIns\n\n- Default: `'usage'`\n- Allowed values: `'usage' | 'entry' | false`\n\nExplicitly set `useBuiltIns` option for `babel-preset-env`.\n\nThe default value is `'usage'`, which adds imports to polyfills based on the usage in transpiled code. For example, if you use `Object.assign` in your code, the corresponding polyfill will be auto-imported if your target environment does not supports it.\n\nIf you are building a library or web component instead of an app, you probably want to set this to `false` and let the consuming app be responsible for the polyfills.\n\nNote that the usage detection does not apply to your dependencies (which are excluded by `cli-plugin-babel` by default). If one of your dependencies need polyfills, you have a few options:\n\n1. **If the dependency is written in an ES version that your target environments do not support:** Add that dependency to the `transpileDependencies` option in `vue.config.js`. This would enable both syntax transforms and usage-based polyfill detection for that dependency.\n\n2. **If the dependency ships ES5 code and explicitly lists the polyfills needed:** you can pre-include the needed polyfills using the [polyfills](#polyfills) option for this preset.\n\n3. **If the dependency ships ES5 code, but uses ES6+ features without explicitly listing polyfill requirements (e.g. Vuetify):** Use `useBuiltIns: 'entry'` and then add `import '@babel/polyfill'` to your entry file. This will import **ALL** polyfills based on your `browserslist` targets so that you don't need to worry about dependency polyfills anymore, but will likely increase your final bundle size with some unused polyfills.\n\nSee [@babel/preset-env docs](https://new.babeljs.io/docs/en/next/babel-preset-env.html#usebuiltins-usage) for more details.\n\n### polyfills\n\n- Default: `['es.array.iterator', 'es.promise', 'es.object.assign', 'es.promise.finally']`\n\nA list of [core-js](https://github.com/zloirock/core-js) polyfills to pre-include when using `useBuiltIns: 'usage'`. **These polyfills are automatically excluded if they are not needed for your target environments**.\n\nUse this option when you have 3rd party dependencies that are not processed by Babel but have specific polyfill requirements (e.g. Axios and Vuex require Promise support).\n\n### jsx\n\n- Default: `true`.\n\nSet to `false` to disable JSX support. Or you can toggle [@vue/babel-preset-jsx](https://github.com/vuejs/jsx/tree/dev/packages/babel-preset-jsx) (or [@vue/babel-plugin-jsx](https://github.com/vuejs/jsx-next) for Vue 3 projects) features here.\n\n### loose\n\n- Default: `false`.\n\nSetting this to `true` will generate code that is more performant but less spec-compliant.\n\n### entryFiles\n\n- Default: `[]`\n\nMulti page repo use `entryFiles` to ensure inject polyfills to all entry file.\n","publish_time":1755773822814,"_cnpm_publish_time":1755773822814,"dist-tags":{"latest":"5.0.9","next":"5.0.6"}}