We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 489c8d4 commit 10b26a5Copy full SHA for 10b26a5
src/onCreateNode/translateNode.ts
@@ -1,7 +1,7 @@
1
import { FileSystemNode } from 'gatsby-source-filesystem';
2
import convertToSlug from 'limax';
3
import fs from 'fs/promises';
4
-import path from 'path';
+import path from 'path/posix';
5
import { OnCreateNode, PluginOptions } from '../../types';
6
import { addLocalePrefix, trimRightSlash } from '../utils/path';
7
import { findClosestLocale, parseFilename } from '../utils/i18n';
src/utils/path.ts
@@ -1,4 +1,4 @@
-import nodePath from 'path';
+import nodePath from 'path/posix';
import { PluginOptions } from '../../types';
export const trimRightSlash = (path: string) => {
0 commit comments