Add preserve-comment-header Babel plugin
authorRandall Leeds <randall@apache.org>
Mon, 12 Mar 2018 19:24:14 +0000 (12:24 -0700)
committerRandall Leeds <randall@apache.org>
Mon, 12 Mar 2018 19:24:14 +0000 (12:24 -0700)
Shout out to Logan Smyth for whipping this up.

.babelrc.js
package.json
yarn.lock

index 6e39cfa..9ee0505 100644 (file)
@@ -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]]: []),
index 20594b7..10f5ddb 100644 (file)
@@ -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",
index 117b48f..6eca6e6 100644 (file)
--- 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"