You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@annotator.apache.org by ra...@apache.org on 2018/03/12 19:25:18 UTC
[incubator-annotator] branch master updated: Add
preserve-comment-header Babel plugin
This is an automated email from the ASF dual-hosted git repository.
randall pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-annotator.git
The following commit(s) were added to refs/heads/master by this push:
new de0b1cf Add preserve-comment-header Babel plugin
de0b1cf is described below
commit de0b1cf061384f80cbcabf9774a5c9083b5b3dfc
Author: Randall Leeds <ra...@apache.org>
AuthorDate: Mon Mar 12 12:24:14 2018 -0700
Add preserve-comment-header Babel plugin
Shout out to Logan Smyth for whipping this up.
---
.babelrc.js | 1 +
package.json | 1 +
yarn.lock | 4 ++++
3 files changed, 6 insertions(+)
diff --git a/.babelrc.js b/.babelrc.js
index 6e39cfa..9ee0505 100644
--- a/.babelrc.js
+++ b/.babelrc.js
@@ -63,6 +63,7 @@ const runtimeOptions = {
const config = {
plugins: [
+ 'preserve-comment-header',
['@babel/transform-runtime', runtimeOptions],
...(CJS ? [['@babel/transform-modules-commonjs', cjsOptions]]: []),
...(DEV || TEST ? [['module-resolver', resolverOptions]]: []),
diff --git a/package.json b/package.json
index 20594b7..10f5ddb 100644
--- a/package.json
+++ b/package.json
@@ -33,6 +33,7 @@
"babel-loader": "^8.0.0-beta.2",
"babel-plugin-istanbul": "^4.1.5",
"babel-plugin-module-resolver": "^3.1.0",
+ "babel-plugin-preserve-comment-header": "^1.0.1",
"chai": "^4.1.2",
"cross-env": "^5.1.4",
"dom-highlight-range": "^1.0.1",
diff --git a/yarn.lock b/yarn.lock
index 117b48f..6eca6e6 100644
--- a/yarn.lock
+++ b/yarn.lock
@@ -884,6 +884,10 @@ babel-plugin-module-resolver@^3.1.0:
reselect "^3.0.1"
resolve "^1.4.0"
+babel-plugin-preserve-comment-header@^1.0.1:
+ version "1.0.1"
+ resolved "https://registry.yarnpkg.com/babel-plugin-preserve-comment-header/-/babel-plugin-preserve-comment-header-1.0.1.tgz#7181cba65c507914d45eaefc372eb659b3f16996"
+
babel-runtime@^6.22.0, babel-runtime@^6.26.0:
version "6.26.0"
resolved "https://registry.yarnpkg.com/babel-runtime/-/babel-runtime-6.26.0.tgz#965c7058668e82b55d7bfe04ff2337bc8b5647fe"
--
To stop receiving notification emails like this one, please contact
randall@apache.org.