diff --git a/cspell.code-workspace b/cspell.code-workspace index 87eaf54293f..98bcaa32f7f 100644 --- a/cspell.code-workspace +++ b/cspell.code-workspace @@ -5,6 +5,7 @@ "path": "." }, { "path": "docs" }, + { "path": "packages/dynamic-import" }, { "path": "integration-tests" }, { "path": "packages/cspell-bundled-dicts" }, { "path": "packages/cspell-config-lib" }, diff --git a/packages/dynamic-import/lib/dynamicImport.js b/packages/dynamic-import/lib/dynamicImport.js index d93ffde403f..e575708d1a4 100644 --- a/packages/dynamic-import/lib/dynamicImport.js +++ b/packages/dynamic-import/lib/dynamicImport.js @@ -1,6 +1,6 @@ import { dImport } from './dImport.js'; -import { sep as pathSep } from 'node:path'; -import { pathToFileURL } from 'node:url'; +import { sep as pathSep } from 'path'; +import { pathToFileURL } from 'url'; /** * Lazy load the importer so we can use an ESM packages inside a cjs file.