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 10b26a5 commit c4471d9Copy full SHA for c4471d9
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/posix';
+import { posix as path } from 'path';
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/posix';
+import { posix as nodePath } from 'path';
import { PluginOptions } from '../../types';
export const trimRightSlash = (path: string) => {
0 commit comments