Fix: fixup package name [skip ci]
This commit is contained in:
parent
65ae4ff15b
commit
8e0d247e8c
@ -19,7 +19,7 @@ export default function populatePlaceholders(
|
||||
|
||||
throw new Error(
|
||||
`Error: No substitution given for "${placeholderName}". If this is not meant to be a
|
||||
placeholder you may want to consider passing one of the following options to babel-template:
|
||||
placeholder you may want to consider passing one of the following options to @babel/template:
|
||||
- { placeholderPattern: false, placeholderWhitelist: new Set(['${placeholderName}'])}
|
||||
- { placeholderPattern: /^${placeholderName}$/ }`,
|
||||
);
|
||||
@ -45,7 +45,7 @@ export default function populatePlaceholders(
|
||||
(replacements && replacements[placeholder.name]) || null,
|
||||
);
|
||||
} catch (e) {
|
||||
e.message = `babel-template placeholder "${placeholder.name}": ${
|
||||
e.message = `@babel/template placeholder "${placeholder.name}": ${
|
||||
e.message
|
||||
}`;
|
||||
throw e;
|
||||
|
||||
@ -5,7 +5,7 @@ import * as t from "@babel/types";
|
||||
|
||||
const comments = "// Sum two numbers\nconst add = (a, b) => a + b;";
|
||||
|
||||
describe("babel-template", function() {
|
||||
describe("@babel/template", function() {
|
||||
it("import statements are allowed by default", function() {
|
||||
expect(function() {
|
||||
template("import foo from 'foo'")({});
|
||||
@ -136,7 +136,7 @@ describe("babel-template", function() {
|
||||
}).to.throw(
|
||||
Error,
|
||||
`Error: No substitution given for "ANOTHER_ID". If this is not meant to be a
|
||||
placeholder you may want to consider passing one of the following options to babel-template:
|
||||
placeholder you may want to consider passing one of the following options to @babel/template:
|
||||
- { placeholderPattern: false, placeholderWhitelist: new Set(['ANOTHER_ID'])}
|
||||
- { placeholderPattern: /^ANOTHER_ID$/ }`,
|
||||
);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user