Skip to content
This repository was archived by the owner on Aug 4, 2021. It is now read-only.

Commit fba7102

Browse files
committed
-> v1.1.1
1 parent 5c084b6 commit fba7102

File tree

6 files changed

+40
-37
lines changed

6 files changed

+40
-37
lines changed

.babelrc

Lines changed: 0 additions & 3 deletions
This file was deleted.

.eslintrc

Lines changed: 22 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,24 @@
11
{
2-
"rules": {
3-
"indent": [ 2, "tab", { "SwitchCase": 1 } ],
4-
"quotes": [ 2, "single" ],
5-
"linebreak-style": [ 2, "unix" ],
6-
"semi": [ 2, "always" ],
7-
"space-after-keywords": [ 2, "always" ],
8-
"space-before-blocks": [ 2, "always" ],
9-
"space-before-function-paren": [ 2, "always" ],
10-
"no-mixed-spaces-and-tabs": [ 2, "smart-tabs" ],
11-
"no-cond-assign": [ 0 ]
12-
},
13-
"env": {
14-
"es6": true,
15-
"browser": true,
16-
"mocha": true,
17-
"node": true
18-
},
19-
"extends": "eslint:recommended",
20-
"ecmaFeatures": {
21-
"modules": true
22-
}
2+
"rules": {
3+
"indent": [ 2, "tab", { "SwitchCase": 1 } ],
4+
"quotes": [ 2, "single" ],
5+
"linebreak-style": [ 2, "unix" ],
6+
"semi": [ 2, "always" ],
7+
"keyword-spacing": [ 2, { "before": true, "after": true } ],
8+
"space-before-blocks": [ 2, "always" ],
9+
"space-before-function-paren": [ 2, "always" ],
10+
"no-mixed-spaces-and-tabs": [ 2, "smart-tabs" ],
11+
"no-cond-assign": [ 0 ]
12+
},
13+
"env": {
14+
"es6": true,
15+
"browser": true,
16+
"mocha": true,
17+
"node": true
18+
},
19+
"extends": "eslint:recommended",
20+
"parserOptions": {
21+
"sourceType": "module",
22+
"ecmaVersion": 6
23+
}
2324
}

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# rollup-plugin-replace changelog
22

3+
## 1.1.1
4+
5+
* Return a `name`
6+
37
## 1.1.0
48

59
* Generate sourcemaps by default

package.json

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,23 @@
11
{
22
"name": "rollup-plugin-replace",
3-
"version": "1.1.0",
3+
"version": "1.1.1",
44
"devDependencies": {
5-
"babel-preset-es2015-rollup": "^1.0.0",
6-
"eslint": "^1.7.3",
7-
"mocha": "^2.3.3",
8-
"rollup": "^0.22.0",
9-
"rollup-plugin-babel": "^2.2.0"
5+
"eslint": "^2.13.1",
6+
"mocha": "^2.5.3",
7+
"rollup": "^0.32.4",
8+
"rollup-plugin-buble": "^0.12.1"
109
},
1110
"main": "dist/rollup-plugin-replace.cjs.js",
12-
"jsnext:main": "dist/rollup-plugin-replace.es6.js",
11+
"jsnext:main": "dist/rollup-plugin-replace.es.js",
1312
"dependencies": {
14-
"magic-string": "^0.10.0",
15-
"minimatch": "^3.0.0",
16-
"rollup-pluginutils": "^1.1.0"
13+
"magic-string": "^0.15.2",
14+
"minimatch": "^3.0.2",
15+
"rollup-pluginutils": "^1.5.0"
1716
},
1817
"scripts": {
1918
"test": "mocha",
2019
"pretest": "npm run build",
21-
"build": "rollup -c -f cjs -o dist/rollup-plugin-replace.cjs.js && rollup -c -f es6 -o dist/rollup-plugin-replace.es6.js",
20+
"build": "rollup -c -f cjs -o dist/rollup-plugin-replace.cjs.js && rollup -c -f es -o dist/rollup-plugin-replace.es.js",
2221
"prebuild": "rm -rf dist/*",
2322
"prepublish": "npm test"
2423
},

rollup.config.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
import babel from 'rollup-plugin-babel';
1+
import buble from 'rollup-plugin-buble';
22

33
var external = Object.keys( require( './package.json' ).dependencies ).concat( 'path' );
44

55
export default {
66
entry: 'src/index.js',
7-
plugins: [ babel() ],
7+
plugins: [ buble() ],
88
external: external
99
};

src/index.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ export default function replace ( options = {} ) {
1313
const filter = createFilter( options.include, options.exclude );
1414

1515
return {
16+
name: 'replace',
17+
1618
transform ( code, id ) {
1719
if ( !filter( id ) ) return null;
1820

0 commit comments

Comments
 (0)