rollup-plugin-string
Advanced tools
Comparing version 2.0.2 to 3.0.0
@@ -0,0 +0,0 @@ # Changelog |
{ | ||
"name": "rollup-plugin-string", | ||
"version": "2.0.2", | ||
"version": "3.0.0", | ||
"description": "Converts text files to modules", | ||
"main": "dist/rollup-plugin-string.js", | ||
"jsnext:main": "dist/rollup-plugin-string.mjs", | ||
"main": "index.js", | ||
"files": [ | ||
"dist" | ||
"index.js" | ||
], | ||
"dependencies": { | ||
"rollup-pluginutils": "^1.5.0" | ||
"rollup-pluginutils": "^2.4.1" | ||
}, | ||
"devDependencies": { | ||
"buble": "^0.10.6", | ||
"mocha": "^2.5.3", | ||
"rollup": "^0.31.0", | ||
"rollup-plugin-buble": "^0.10.0" | ||
"mocha": "^6.0.1", | ||
"prettier": "^1.16.4", | ||
"rollup": "^1.2.3" | ||
}, | ||
"scripts": { | ||
"build": "rollup -c", | ||
"pretest": "npm run build", | ||
"test": "mocha test/*.js --compilers js:buble/register", | ||
"prepublish": "npm test" | ||
"test": "mocha test/*.js" | ||
}, | ||
@@ -25,0 +20,0 @@ "repository": { |
@@ -6,4 +6,4 @@ # rollup-plugin-string [![Build Status](https://travis-ci.org/TrySound/rollup-plugin-string.svg)](https://travis-ci.org/TrySound/rollup-plugin-string) | ||
```js | ||
import tpl from './tpl.html'; | ||
console.log( `Template for render: ${tpl}` ); | ||
import tpl from "./tpl.html"; | ||
console.log(`Template for render: ${tpl}`); | ||
``` | ||
@@ -20,16 +20,16 @@ | ||
```js | ||
import { rollup } from 'rollup'; | ||
import string from 'rollup-plugin-string'; | ||
import { rollup } from "rollup"; | ||
import { string } from "rollup-plugin-string"; | ||
rollup({ | ||
entry: 'main.js', | ||
plugins: [ | ||
string({ | ||
// Required to be specified | ||
include: '**/*.html', | ||
entry: "main.js", | ||
plugins: [ | ||
string({ | ||
// Required to be specified | ||
include: "**/*.html", | ||
// Undefined by default | ||
exclude: ['**/index.html'] | ||
}) | ||
] | ||
// Undefined by default | ||
exclude: ["**/index.html"] | ||
}) | ||
] | ||
}); | ||
@@ -36,0 +36,0 @@ ``` |
Sorry, the diff of this file is not supported yet
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
3
3306
5
19
+ Addedestree-walker@0.6.1(transitive)
+ Addedrollup-pluginutils@2.8.2(transitive)
- Removedbalanced-match@1.0.2(transitive)
- Removedbrace-expansion@1.1.11(transitive)
- Removedconcat-map@0.0.1(transitive)
- Removedestree-walker@0.2.1(transitive)
- Removedminimatch@3.1.2(transitive)
- Removedrollup-pluginutils@1.5.2(transitive)
Updatedrollup-pluginutils@^2.4.1