Merge branch 'dev' into next

This commit is contained in:
chenjiahan
2022-05-31 20:05:10 +08:00
97 changed files with 557 additions and 354 deletions
+2 -1
View File
@@ -1,7 +1,8 @@
const { build } = require('esbuild');
function bundleBundle(format) {
const outfile = `dist/index.${format}.js`;
const ext = format === 'esm' ? '.mjs' : '.js';
const outfile = `dist/index.${format}${ext}`;
const finish = () => console.log('Build finished:', outfile);
const onRebuild = (error) => (error ? console.log(error) : finish());
+8
View File
@@ -1,5 +1,13 @@
# Changelog
## v1.4.1
- Add `exports` field to package.json, support nuxt 3.
## v1.4.0
- Using `.mjs` extension, `dist/index.esm.js` -> `dist/index.esm.mjs`
## v1.3.6
- Fix missing VisibilityState type
+8 -2
View File
@@ -1,10 +1,16 @@
{
"name": "@vant/use",
"version": "1.3.6",
"version": "1.4.1",
"description": "Vant Composition API",
"main": "dist/index.cjs.js",
"module": "dist/index.esm.js",
"module": "dist/index.esm.mjs",
"typings": "dist/index.d.ts",
"exports": {
".": {
"import": "./dist/index.esm.mjs",
"require": "./dist/index.cjs.js"
}
},
"sideEffects": false,
"files": [
"dist"