From 51c58877fa56d1c92473c0aecbcece72f3ba8450 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Peter=20M=C3=BCller?= Date: Mon, 4 Jan 2016 17:19:42 +0100 Subject: [PATCH 1/5] 1.0.0 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 42f5fa6..f8001ce 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "requirejs-react-jsx", - "version": "0.16.2", + "version": "1.0.0", "description": "A RequireJS plugin for loading jsx in require.js and r.js", "main": "jsx.js", "scripts": { From 3bbd1cbfca950cfbcb68ea6c3f7248d5e22d72f7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Peter=20M=C3=BCller?= Date: Mon, 4 Jan 2016 17:32:38 +0100 Subject: [PATCH 2/5] Embed sources in Istanbul instrumentation by default. Istanbuls reporters don't understand things otehrwise --- jsx.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/jsx.js b/jsx.js index 2ef1682..fa3fd48 100644 --- a/jsx.js +++ b/jsx.js @@ -34,7 +34,9 @@ define(function () { var istanbul = require.nodeRequire('istanbul'); var coverageVariable = Object.keys(global).filter(function (key) { return key.indexOf('$$cov_') === 0 })[0]; var instrumenter = new istanbul.Instrumenter({ - coverageVariable: coverageVariable + coverageVariable: coverageVariable, + noCompact: true, + embedSource: true }); compiled = instrumenter.instrumentSync(compiled, path); From ea9e9ae6f7c5cdad637131fffdbc3ca54be7298f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Peter=20M=C3=BCller?= Date: Mon, 4 Jan 2016 17:32:44 +0100 Subject: [PATCH 3/5] 1.0.1 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index f8001ce..74a7b3e 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "requirejs-react-jsx", - "version": "1.0.0", + "version": "1.0.1", "description": "A RequireJS plugin for loading jsx in require.js and r.js", "main": "jsx.js", "scripts": { From 4c91eb6a93325f52397e5b19ab80f8dcd4835b5a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Peter=20M=C3=BCller?= Date: Tue, 5 Jan 2016 12:50:04 +0100 Subject: [PATCH 4/5] Fix error where nothing would ever get written due to falsy check in buildMap. Now also throws if module is not found in buildMap --- jsx.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/jsx.js b/jsx.js index fa3fd48..25784e9 100644 --- a/jsx.js +++ b/jsx.js @@ -85,10 +85,12 @@ define(function () { load: isNode ? babelSync : babelAsync, write: function (pluginName, name, write) { - if (typeof buildMap[name] === 'text') { + if (typeof buildMap[name] === 'string') { var text = buildMap[name]; write.asModule(pluginName + "!" + name, text); + } else { + throw new Error('Module not found in build map: ' + name); } } }; From bbf190b1590240a36d43d4f27f08b8a6adfb749b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Peter=20M=C3=BCller?= Date: Tue, 5 Jan 2016 12:50:15 +0100 Subject: [PATCH 5/5] 1.0.2 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 74a7b3e..67e8f44 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "requirejs-react-jsx", - "version": "1.0.1", + "version": "1.0.2", "description": "A RequireJS plugin for loading jsx in require.js and r.js", "main": "jsx.js", "scripts": {