@cpp.js/plugin-webpack 2.0.0-beta.24 → 2.0.0-beta.26
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.
- package/LICENSE +1 -1
- package/index.js +3 -1
- package/package.json +6 -3
package/LICENSE
CHANGED
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
|
-
|
|
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.
|
|
3
|
+
"version": "2.0.0-beta.26",
|
|
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-
|
|
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.
|
|
11
|
+
"cpp.js": "^2.0.0-beta.26"
|
|
12
|
+
},
|
|
13
|
+
"peerDependencies": {
|
|
14
|
+
"webpack": ">=5"
|
|
12
15
|
},
|
|
13
16
|
"keywords": [
|
|
14
17
|
"cpp.js-plugin",
|