Socket
Socket
Sign inDemoInstall

@rollup/plugin-babel

Package Overview
Dependencies
Maintainers
4
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@rollup/plugin-babel - npm Package Compare versions

Comparing version 5.0.4 to 5.1.0

types/index.d.ts

12

CHANGELOG.md
# @rollup/plugin-babel ChangeLog
## v5.1.0
_2020-07-12_
### Features
- feat: add typings (#462)
### Updates
- docs: add note about excluding @babel/runtime helpers via regex (#483)
## v5.0.4

@@ -4,0 +16,0 @@

18

package.json
{
"name": "@rollup/plugin-babel",
"version": "5.0.4",
"version": "5.1.0",
"publishConfig": {

@@ -28,8 +28,10 @@ "access": "public"

"prebuild": "del-cli dist",
"prepublishOnly": "pnpm run lint && pnpm run test && pnpm run build",
"prepublishOnly": "pnpm run lint && pnpm run test && pnpm run build && pnpm run test:ts",
"pretest": "pnpm run build",
"test": "ava"
"test": "ava",
"test:ts": "tsc types/index.d.ts test/types.ts --noEmit"
},
"files": [
"dist",
"types",
"README.md",

@@ -48,2 +50,3 @@ "LICENSE"

"@babel/core": "^7.0.0",
"@types/babel__core": "^7.1.9",
"rollup": "^1.20.0||^2.0.0"

@@ -63,2 +66,3 @@ },

"@rollup/plugin-json": "^4.0.0",
"@types/babel__core": "^7.1.9",
"rollup": "^2.0.0",

@@ -79,3 +83,9 @@ "source-map": "^0.6.1"

],
"module": "dist/index.es.js"
"module": "dist/index.es.js",
"peerDependenciesMeta": {
"@types/babel__core": {
"optional": true
}
},
"types": "types/index.d.ts"
}

@@ -94,3 +94,3 @@ [npm]: https://img.shields.io/npm/v/@rollup/plugin-babel

- `'runtime'` - you should use this especially when building libraries with Rollup. It has to be used in combination with `@babel/plugin-transform-runtime` and you should also specify `@babel/runtime` as dependency of your package (don't forget to tell Rollup to treat it as your external dependency when bundling for `cjs` & `es` formats).
- `'runtime'` - you should use this especially when building libraries with Rollup. It has to be used in combination with `@babel/plugin-transform-runtime` and you should also specify `@babel/runtime` as dependency of your package. Don't forget to tell Rollup to treat the helpers imported from within the `@babel/runtime` module as external dependencies when bundling for `cjs` & `es` formats. This can be accomplished via regex (`external: [/@babel\/runtime/]`) or a function (`external: id => id.includes('@babel/runtime')`). It's important to not only specify `external: ['@babel/runtime']` since the helpers are imported from nested paths (e.g `@babel/runtime/helpers/get`) and [Rollup will only exclude modules that match strings exactly](https://rollupjs.org/guide/en/#peer-dependencies).
- `'bundled'` - you should use this if you want your resulting bundle to contain those helpers (at most one copy of each). Useful especially if you bundle an application code.

@@ -97,0 +97,0 @@ - `'external'` - use this only if you know what you are doing. It will reference helpers on **global** `babelHelpers` object. Used in combination with `@babel/plugin-external-helpers`.

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc