File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
packages/gatsby/src/bootstrap/load-plugins Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -21,6 +21,7 @@ import {
2121import { resolvePlugin } from "./resolve-plugin"
2222import { preferDefault } from "../prefer-default"
2323import { importGatsbyPlugin } from "../../utils/import-gatsby-plugin"
24+ import { maybeAddFileProtocol } from "../resolve-js-file-path"
2425
2526interface IApi {
2627 version ?: string
@@ -193,7 +194,7 @@ const addModuleImport = async (
193194 value : Array < ISubPluginCustomReturn >
194195) : Promise < Array < ISubPluginCustomReturn > > => {
195196 for ( const plugin of value ) {
196- const importedModule = await import ( plugin . modulePath )
197+ const importedModule = await import ( maybeAddFileProtocol ( plugin . modulePath ) )
197198 const pluginModule = preferDefault ( importedModule )
198199 plugin . module = pluginModule
199200 }
You can’t perform that action at this time.
0 commit comments