Browse Source

update magic-string

gh-438-b
Rich-Harris 9 years ago
parent
commit
fbc81f15b7
  1. 2
      package.json
  2. 3
      test/function/vars-not-removed/_config.js
  3. 3
      test/function/vars-not-removed/bar.js
  4. 3
      test/function/vars-not-removed/foo.js
  5. 2
      test/function/vars-not-removed/main.js

2
package.json

@ -48,7 +48,7 @@
"eslint": "^1.7.1",
"estree-walker": "^0.2.0",
"istanbul": "^0.4.0",
"magic-string": "^0.10.0",
"magic-string": "^0.10.1",
"mocha": "^2.3.3",
"remap-istanbul": "^0.4.0",
"rollup": "^0.20.2",

3
test/function/vars-not-removed/_config.js

@ -0,0 +1,3 @@
module.exports = {
description: 'does not erroneously remove var/let/const keywords (#390)'
};

3
test/function/vars-not-removed/bar.js

@ -0,0 +1,3 @@
var a = 2, b = 3;
assert.equal( a + b, 5 );

3
test/function/vars-not-removed/foo.js

@ -0,0 +1,3 @@
var a = 1, b = 2;
assert.equal( a + b, 3 );

2
test/function/vars-not-removed/main.js

@ -0,0 +1,2 @@
import './foo.js';
import './bar.js';
Loading…
Cancel
Save