@cpp.js/plugin-webpack 2.0.0-beta.24 → 2.0.0-beta.29

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/LICENSE +1 -1
  2. package/index.js +3 -1
  3. package/package.json +6 -3
package/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  MIT License
2
2
 
3
- Copyright (c) 2026 Buğra Sarı
3
+ Copyright (c) 2026 Buğra Sarı and cpp.js contributors
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
package/index.js CHANGED
@@ -28,7 +28,9 @@ export default class CppjsWebpackPlugin {
28
28
 
29
29
  apply(compiler) {
30
30
  const pluginName = this.constructor.name;
31
- compiler.hooks.done.tap(pluginName, this.onDone.bind(this));
31
+ // tapPromise (not tap) so webpack awaits the native C++/wasm build and a build
32
+ // failure surfaces as a compilation error instead of an unhandled rejection.
33
+ compiler.hooks.done.tapPromise(pluginName, this.onDone.bind(this));
32
34
  compiler.hooks.afterCompile.tapAsync(pluginName, this.afterCompile.bind(this));
33
35
  }
34
36
 
package/package.json CHANGED
@@ -1,14 +1,17 @@
1
1
  {
2
2
  "name": "@cpp.js/plugin-webpack",
3
- "version": "2.0.0-beta.24",
3
+ "version": "2.0.0-beta.29",
4
4
  "description": "Cpp.js Webpack plugin: A tool for seamless C++ integration with the Webpack bundler.",
5
- "homepage": "https://github.com/bugra9/cpp.js/tree/main/packages/cppjs-plugin-rollup#readme",
5
+ "homepage": "https://github.com/bugra9/cpp.js/tree/main/packages/cppjs-plugin-webpack#readme",
6
6
  "repository": "https://github.com/bugra9/cpp.js.git",
7
7
  "license": "MIT",
8
8
  "type": "module",
9
9
  "main": "index.js",
10
10
  "dependencies": {
11
- "cpp.js": "^2.0.0-beta.24"
11
+ "cpp.js": "^2.0.0-beta.29"
12
+ },
13
+ "peerDependencies": {
14
+ "webpack": ">=5"
12
15
  },
13
16
  "keywords": [
14
17
  "cpp.js-plugin",