Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@rollup/plugin-virtual

Package Overview
Dependencies
Maintainers
4
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@rollup/plugin-virtual - npm Package Compare versions

Comparing version 2.0.1 to 2.0.2

8

CHANGELOG.md
# @rollup/plugin-virtual ChangeLog
## v2.0.2
_2020-05-11_
### Updates
- docs: example use for bundle input (#323)
## v2.0.1

@@ -4,0 +12,0 @@

8

package.json
{
"name": "@rollup/plugin-virtual",
"version": "2.0.1",
"version": "2.0.2",
"publishConfig": {

@@ -22,3 +22,3 @@ "access": "public"

"lint:docs": "prettier --single-quote --write README.md",
"lint:js": "eslint --fix --cache src test",
"lint:js": "eslint --fix --cache src test --ext .js,.ts",
"lint:package": "prettier --write package.json --plugin=prettier-plugin-package",

@@ -45,7 +45,7 @@ "prebuild": "del-cli dist",

"peerDependencies": {
"rollup": "^1.20.0"
"rollup": "^1.20.0||^2.0.0"
},
"devDependencies": {
"@rollup/plugin-node-resolve": "^7.0.0",
"rollup": "^1.27.14"
"rollup": "^2.0.0"
},

@@ -52,0 +52,0 @@ "ava": {

@@ -63,4 +63,25 @@ [npm]: https://img.shields.io/npm/v/@rollup/plugin-virtual

## Using the Plugin for Bundle Input
It's possible to use the plugin to specify an entry point for a bundle. To do so, implement a pattern simple to what is shown below:
```js
import virtual from '@rollup/plugin-virtual';
export default {
input: 'entry',
// ...
plugins: [
virtual({
entry: `
import batman from 'batcave';
console.log(batman);
`
})
]
};
```
## License
[MIT](LICENSE)
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