@rollup/plugin-virtual
Advanced tools
Comparing version 2.0.1 to 2.0.2
# @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 @@ |
{ | ||
"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) |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
7555
87