added min version for esm bundle

This commit is contained in:
Tom Wilson
2022-05-31 14:19:17 +00:00
committed by just_ppe
parent 0dd33175c8
commit 87b1ed3e4a

View File

@@ -51,6 +51,21 @@ const runBuild = async () => {
console.log(e);
process.exit(1);
});
build({
entryPoints: ['./src/index.ts'],
minify: true,
bundle: true,
outfile: './bundles/esm.bundle.min.js',
platform: 'browser',
target: ['es2020', 'chrome58', 'firefox57', 'safari11'],
format: 'esm',
globalName: 'rsdk'
}).catch((e) => {
console.log(e);
process.exit(1);
});
};
runBuild();