build(server-renderer): Add ESM as a build target (#4209)

This commit is contained in:
Bartek Igielski 2021-07-29 16:48:15 +02:00 committed by GitHub
parent 13c69469f2
commit 1e3d468ca1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -3,13 +3,16 @@
"version": "3.2.0-beta.6", "version": "3.2.0-beta.6",
"description": "@vue/server-renderer", "description": "@vue/server-renderer",
"main": "index.js", "main": "index.js",
"module": "dist/server-renderer.esm-bundler.js",
"types": "dist/server-renderer.d.ts", "types": "dist/server-renderer.d.ts",
"files": [ "files": [
"index.js", "index.js",
"dist" "dist"
], ],
"buildOptions": { "buildOptions": {
"name": "VueServerRenderer",
"formats": [ "formats": [
"esm-bundler",
"cjs" "cjs"
] ]
}, },