New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@codady/axui

Package Overview
Dependencies
Maintainers
0
Versions
182
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@codady/axui - npm Package Compare versions

Comparing version 3.0.13 to 3.0.14

dist/js/ax.esm.cjs.js

2

package.json
{
"name": "@codady/axui",
"version": "3.0.13",
"version": "3.0.14",
"author": "AXUI Development Team",

@@ -5,0 +5,0 @@ "license": "MIT",

@@ -39,8 +39,2 @@ import resolve from '@rollup/plugin-node-resolve';

plugins: [
replace({
//因为umd格式需要打包所有组件并且直接可用,需要传递环境变量,在入口文件中识别
//此处需要使用JSON.stringify确保传递的是文本
'process.env.BUILD_FORMAT': JSON.stringify('umd'),
preventAssignment: true,
}),
...sharePlugins,

@@ -51,3 +45,3 @@ ],

//打包入口文件,esm格式
input: './src/scripts/ax.js',
input: './src/scripts/ax.comm.js',
output:

@@ -58,10 +52,6 @@ {

format: 'es',
entryFileNames: 'js/[name].esm.js',
entryFileNames: 'js/ax.esm.js',
banner: note,
},
plugins: [
replace({
'process.env.BUILD_FORMAT': JSON.stringify('esm'),
preventAssignment: true,
}),
...sharePlugins

@@ -72,3 +62,3 @@ ],

//打包入口文件,esm格式
input: './src/scripts/ax.js',
input: './src/scripts/ax.comm.js',
output:

@@ -79,103 +69,9 @@ {

format: 'cjs',
entryFileNames: 'js/[name].cjs.js',
entryFileNames: 'js/ax.cjs.js',
banner: note,
},
plugins: [
replace({
'process.env.BUILD_FORMAT': JSON.stringify('cjs'),
preventAssignment: true,
}),
...sharePlugins
],
},
/* {
//打包入口文件,esm格式
input: './src/scripts/ax.js',
output: [
//使用目录dist,是为了方便css文件放到css目录里
{
//umd格式,网页终端可通过sript标签引用,兼容了cjs和amd,也可用于node环境
dir: './dist/',
format: 'umd',
name: 'ax',
//因为入口哦文件时ax.js,此处的[name]表示保持文件头一致,即为ax
entryFileNames: 'js/[name].js',
//头部插入注释
banner: note,
plugins: [
replace({
'process.env.BUILD_FORMAT': JSON.stringify('umd'), // 为 UMD 格式设置环境变量
preventAssignment: true,
}),
],
},
{
//esm格式,网页终端可通过import方式引用,也可用于node环境
dir: './dist/',
format: 'es',
entryFileNames: 'js/[name].esm.js',
banner: note,
},
{
//cjs格式,必须在node环境下以require方式引用
dir: './dist/',
format: 'cjs',
entryFileNames: 'js/[name].cjs.js',
banner: note,
},
],
plugins: [
replace({
'process.env.BUILD_FORMAT': 'umd',
preventAssignment: true, // 防止错误的赋值
}),
//动态替换内容
],
}, */
/* {
//打包英文版本
input: './src/scripts/ax.js',
output: [
{
dir: './dist/',
format: 'umd',
name: 'ax',
entryFileNames: 'js/ax.en.js',
banner: note,
},
{
dir: './dist/',
format: 'es',
entryFileNames: 'js/ax.en.esm.js',
banner: note,
},
{
dir: './dist/',
format: 'cjs',
entryFileNames: 'js/ax.en.cjs.js',
banner: note,
},
],
plugins: [
postcss({
extract: 'css/ax.en.css',
plugins: [],
}),
resolve(),
{
name: 'bundleEnd',
closeBundle() {
appendBanner('./dist/css/ax.en.css', note);
},
},
replace({
//打包前替换en语言包名称
'zh-CN': 'en-US',
//替换打包的css文件
'ax.less': 'ax.en.less',
preventAssignment: true,
}),
],
}, */
]

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc