fixup places that aren not scoped [skip ci] (#6646)
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import rewritePattern from "regexpu-core";
|
||||
import * as regex from "babel-helper-regex";
|
||||
import * as regex from "@babel/helper-regex";
|
||||
|
||||
export default function() {
|
||||
return {
|
||||
|
||||
@@ -49,9 +49,9 @@ which will parse and return the AST directly.
|
||||
## Template Literal Usage
|
||||
|
||||
```js
|
||||
import template from "babel-template";
|
||||
import generate from "babel-generator";
|
||||
import * as t from "babel-types";
|
||||
import template from "@babel/template";
|
||||
import generate from "@babel/generator";
|
||||
import * as t from "@babel/types";
|
||||
|
||||
const fn = template`
|
||||
var IMPORT_NAME = require('${"my-module"}');
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import generator from "../../babel-generator";
|
||||
import template from "../lib";
|
||||
import { expect } from "chai";
|
||||
import * as t from "babel-types";
|
||||
import * as t from "@babel/types";
|
||||
|
||||
const comments = "// Sum two numbers\nconst add = (a, b) => a + b;";
|
||||
|
||||
|
||||
Reference in New Issue
Block a user