RE: Introducing: dhive-sl

avatar
(Edited)

You are viewing a single comment's thread:

Hey, a solution is to add the following code to your nuxt config

build: {
  transpile: [
    ...
    'dhive-sl',
  ],
}


0
0
0.000
2 comments
avatar

Thank you so much, it worked! The bundle size decreased by 186KB.

And the Nuxt analyzer shows a side-by-side comparison of dhive.js vs dhive-sl.esm.js.

9F36EE75-09F3-4C11-A50A-5DBEDDD873AC.png

0
0
0.000
avatar

Nice!

Note that dhive bundled all of the dependencies and native code into a single js file, while dhive-sl doesn't, thus dependencies that dhive-sl relies on aren't included in dhive-sl.esm.js. But those summed up should still be much smaller than previous dhive.js file.

0
0
0.000