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 478c565 commit 98a799dCopy full SHA for 98a799d
bindings/javascript/index.js
@@ -246,10 +246,14 @@ switch (platform) {
246
}
247
248
if (!nativeBinding) {
249
- if (loadError) {
250
- throw loadError
+ try {
+ nativeBinding = require('@css-inline/css-inline-wasm');
251
+ } catch (e) {
252
+ if (loadError) {
253
+ throw loadError;
254
+ }
255
+ throw e;
256
- throw new Error(`Failed to load native binding`)
257
258
259
const { inline, inlineFragment, version } = nativeBinding
0 commit comments