babel-macros
Advanced tools
Comparing version 1.0.0 to 1.0.1
@@ -145,2 +145,7 @@ 'use strict'; | ||
var macro = require(requirePath); | ||
if (macro.name !== 'macroWrapper') { | ||
throw new Error( | ||
// eslint-disable-next-line prefer-template | ||
`The macro imported from "${source}" must be wrapped in "createMacro" ` + `which you can get from "babel-macros". ` + `Please refer to the documentation to see how to do this properly: https://github.com/kentcdodds/babel-macros/blob/master/other/docs/author.md#writing-a-macro`); | ||
} | ||
try { | ||
@@ -147,0 +152,0 @@ macro({ |
{ | ||
"name": "babel-macros", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "Enables zero-config, importable babel plugins", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
20088
180