Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
## [Unreleased]
### Changed
- Bumped the minimum Code version requirement to 1.101.0, the first to bundle Node.js 22
- Provide `import.meta.url` to ESM dependencies bundled into the extension

### Fixed
- Default `cucumber.glue` globs miss `.cjs`, `.mjs`, `.cts` and `.mts` files
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@
},
"scripts": {
"vscode:prepublish": "npm run build",
"esbuild-extension": "esbuild ./src/extension.ts --external:vscode --bundle --outfile=out/extension.js --format=cjs --platform=node --minify --sourcemap",
"esbuild-extension": "esbuild ./src/extension.ts --external:vscode --bundle --outfile=out/extension.js --format=cjs --platform=node --inject:./src/importMetaUrl.ts --define:import.meta.url=importMetaUrl --minify --sourcemap",
"build": "npm run esbuild-extension",
"compile": "tsc --project tsconfig.build.json",
"prepare": "husky && npm run copy-wasms",
Expand Down
4 changes: 4 additions & 0 deletions src/importMetaUrl.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
import { pathToFileURL } from 'node:url'

// Injected by esbuild to stand in for `import.meta.url` in ESM dependencies bundled as CommonJS
export const importMetaUrl = pathToFileURL(__filename).href
Loading