Explorar o código

Swap mainfields in build script (#2751)

This reduces the build size of the module by ~20%
Eric Kwoka %!s(int64=3) %!d(string=hai) anos
pai
achega
0d1731b30e
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      scripts/build.js

+ 1 - 1
scripts/build.js

@@ -59,7 +59,7 @@ function bundleFile(package, file) {
                 outfile: `packages/${package}/dist/${file.replace('.js', '.esm.js')}`,
                 bundle: true,
                 platform: 'neutral',
-                mainFields: ['main', 'module'],
+                mainFields: ['module', 'main'],
             })
 
             build({