Add ESM build to the R3F package and update package.json

This commit is contained in:
Or Fleisher 2021-10-28 13:22:18 -04:00 committed by Aria
parent 0171fb88af
commit 2204e771b3
2 changed files with 6 additions and 5 deletions

View file

@ -67,11 +67,11 @@ function createBundles(watch: boolean) {
{encoding: 'utf-8'},
)
// build({
// ...esbuildConfig,
// outfile: path.join(pathToPackage, 'dist/index.mjs'),
// format: 'esm',
// })
build({
...esbuildConfig,
outfile: path.join(pathToPackage, 'dist/index.mjs'),
format: 'esm',
})
}
createBundles(false)