vite-plugin-banner
Advanced tools
Comparing version 0.1.2 to 0.1.3
@@ -1,3 +0,2 @@ | ||
import type { Plugin } from 'vite'; | ||
declare const banner: (comment: string) => Plugin | unknown; | ||
declare const banner: (comment: string) => any; | ||
export default banner; |
/** | ||
* name: vite-plugin-banner | ||
* version: v0.1.2 | ||
* version: v0.1.3 | ||
* author: chengpeiquan | ||
@@ -5,0 +5,0 @@ */'use strict'; |
/** | ||
* name: vite-plugin-banner | ||
* version: v0.1.2 | ||
* version: v0.1.3 | ||
* author: chengpeiquan | ||
@@ -5,0 +5,0 @@ */"use strict";var e=require("fs"),n=require("path");function t(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var r=t(e); |
{ | ||
"name": "vite-plugin-banner", | ||
"version": "0.1.2", | ||
"version": "0.1.3", | ||
"description": "A banner plugin for Vite. Adds a banner to the top of each generated chunk.", | ||
@@ -5,0 +5,0 @@ "main": "dist/vite-plugin-banner.min.js", |
import fs from 'fs' | ||
import { resolve } from 'path' | ||
import type { Plugin, ResolvedConfig } from 'vite' | ||
import type { ResolvedConfig } from 'vite' | ||
import checkComment from './checkComment' | ||
@@ -19,3 +19,3 @@ | ||
*/ | ||
const banner = (comment: string): Plugin | unknown => { | ||
const banner = (comment: string): any => { | ||
// 校验传入的注释内容合法性 | ||
@@ -33,3 +33,3 @@ const error: string = checkComment(comment); | ||
}, | ||
async writeBundle (options: unknown, bundle: unknown) { | ||
async writeBundle (options: any, bundle: any) { | ||
for ( const file of Object.entries(bundle) ) { | ||
@@ -36,0 +36,0 @@ // 获取文件路径 |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
68913
392