mirror of
https://github.com/youzan/vant.git
synced 2025-10-17 00:14:18 +00:00
chore(popperjs): use Rslib to build (#13252)
This commit is contained in:
@@ -1 +0,0 @@
|
||||
lib
|
@@ -1 +0,0 @@
|
||||
require('../vant-use/build.cjs');
|
@@ -2,13 +2,15 @@
|
||||
"name": "@vant/popperjs",
|
||||
"version": "1.3.0",
|
||||
"description": "Pre-compiled popperjs core",
|
||||
"main": "dist/index.cjs.js",
|
||||
"module": "dist/index.esm.mjs",
|
||||
"type": "module",
|
||||
"main": "dist/index.cjs",
|
||||
"module": "dist/index.js",
|
||||
"types": "dist/index.d.ts",
|
||||
"exports": {
|
||||
".": {
|
||||
"import": "./dist/index.esm.mjs",
|
||||
"require": "./dist/index.cjs.js"
|
||||
"types": "./dist/index.d.ts",
|
||||
"import": "./dist/index.js",
|
||||
"require": "./dist/index.cjs"
|
||||
}
|
||||
},
|
||||
"sideEffects": false,
|
||||
@@ -20,11 +22,8 @@
|
||||
"registry": "https://registry.npmjs.org/"
|
||||
},
|
||||
"scripts": {
|
||||
"clean": "rimraf ./dist",
|
||||
"dev": "node ./build.js -w",
|
||||
"build:types": "tsc -p ./tsconfig.json --emitDeclarationOnly",
|
||||
"build:bundle": "node ./build.js",
|
||||
"build": "pnpm clean && pnpm build:bundle && pnpm build:types",
|
||||
"dev": "rslib dev",
|
||||
"build": "rslib build",
|
||||
"release": "vant-cli release",
|
||||
"prepare": "pnpm build"
|
||||
},
|
||||
@@ -38,8 +37,7 @@
|
||||
"license": "MIT",
|
||||
"devDependencies": {
|
||||
"@popperjs/core": "^2.11.8",
|
||||
"esbuild": "^0.24.0",
|
||||
"rimraf": "^6.0.1",
|
||||
"@rslib/core": "^0.1.3",
|
||||
"typescript": "^5.7.2"
|
||||
}
|
||||
}
|
||||
|
11
packages/vant-popperjs/rslib.config.ts
Normal file
11
packages/vant-popperjs/rslib.config.ts
Normal file
@@ -0,0 +1,11 @@
|
||||
import { defineConfig } from '@rslib/core';
|
||||
|
||||
export default defineConfig({
|
||||
lib: [
|
||||
{ format: 'esm', syntax: ['Chrome 53'], dts: true },
|
||||
{ format: 'cjs', syntax: ['Chrome 53'] },
|
||||
],
|
||||
output: {
|
||||
target: 'web',
|
||||
},
|
||||
});
|
Reference in New Issue
Block a user