Skip to content

Commit

Permalink
fix(gatsby-plugin-image): Use template from core package (#29957)
Browse files Browse the repository at this point in the history
* don't need template import

* type it right
  • Loading branch information
LB authored Mar 3, 2021
1 parent 157ae16 commit c4ca930
Showing 1 changed file with 8 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
import * as types from "@babel/types"
import { PluginObj } from "@babel/core"
import type {
PluginObj,
template as BabelTemplate,
types as BabelTypes,
} from "@babel/core"
import { hashOptions, evaluateImageAttributes } from "./babel-helpers"
import fs from "fs-extra"
import path from "path"
import { slash } from "gatsby-core-utils"

import template from "@babel/template"
import { stripIndent } from "common-tags"

/**
Expand All @@ -15,8 +17,10 @@ import { stripIndent } from "common-tags"

export default function attrs({
types: t,
template,
}: {
types: typeof types
types: typeof BabelTypes
template: typeof BabelTemplate
}): PluginObj {
return {
visitor: {
Expand Down

0 comments on commit c4ca930

Please sign in to comment.