File tree 1 file changed +2
-1
lines changed
packages/gatsby/src/bootstrap/load-plugins
1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -21,6 +21,7 @@ import {
21
21
import { resolvePlugin } from "./resolve-plugin"
22
22
import { preferDefault } from "../prefer-default"
23
23
import { importGatsbyPlugin } from "../../utils/import-gatsby-plugin"
24
+ import { maybeAddFileProtocol } from "../resolve-js-file-path"
24
25
25
26
interface IApi {
26
27
version ?: string
@@ -193,7 +194,7 @@ const addModuleImport = async (
193
194
value : Array < ISubPluginCustomReturn >
194
195
) : Promise < Array < ISubPluginCustomReturn > > => {
195
196
for ( const plugin of value ) {
196
- const importedModule = await import ( plugin . modulePath )
197
+ const importedModule = await import ( maybeAddFileProtocol ( plugin . modulePath ) )
197
198
const pluginModule = preferDefault ( importedModule )
198
199
plugin . module = pluginModule
199
200
}
You can’t perform that action at this time.
0 commit comments