@reform/bundle
Advanced tools
Comparing version 0.4.3 to 0.4.5
@@ -14,3 +14,2 @@ import { Loader, Plugin, TreeShaking } from "esbuild"; | ||
files?: string[]; | ||
sourcemap?: SourceMapVariant; | ||
environment?: string[]; | ||
@@ -27,2 +26,5 @@ variables?: Record<string, string | boolean | number>; | ||
envFile?: string; | ||
splitting?: boolean; | ||
treeShaking?: true | TreeShaking; | ||
sourcemap?: SourceMapVariant; | ||
} | ||
@@ -29,0 +31,0 @@ export interface IBundleScriptConfig extends IBundleConfig { |
@@ -1,3 +0,2 @@ | ||
import { TreeShaking } from "esbuild"; | ||
import { IBundleConfig, SourceMapVariant } from "../build"; | ||
import { IBundleConfig } from "../build"; | ||
export interface IPluginList { | ||
@@ -17,10 +16,5 @@ "@reform/bundle-font": { | ||
plugins?: Partial<IPluginList>; | ||
bundle?: { | ||
splitting?: boolean; | ||
treeShaking?: true | TreeShaking; | ||
sourcemap?: SourceMapVariant; | ||
}; | ||
} | ||
export interface IJSONConfig { | ||
export interface IJSONSchema { | ||
bundle: IJSONBundle[]; | ||
} |
import { BundleScript } from "../build"; | ||
import { IArgumentList } from "../internal"; | ||
import { IJSONConfig } from "./interfaces"; | ||
import { IJSONSchema } from "./interfaces"; | ||
export declare class JSONConfig { | ||
readonly configPath: string; | ||
readonly config: IJSONConfig; | ||
readonly config: IJSONSchema; | ||
readonly args: IArgumentList; | ||
@@ -8,0 +8,0 @@ constructor(args: IArgumentList, configPath: string); |
@@ -18,3 +18,3 @@ "use strict"; | ||
const build = internal_1.resolveStrictAt(this.args.path, bundle.build, "Missing field: bundle[].build"); | ||
const { bundle: { splitting, treeShaking, sourcemap } = {}, plugins = {} } = bundle; | ||
const { splitting, treeShaking, sourcemap, plugins = {} } = bundle; | ||
const bundleScript = new build_1.BundleScript(this.args, { | ||
@@ -41,2 +41,2 @@ base, | ||
exports.JSONConfig = JSONConfig; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiSlNP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0FBQyxDQUFDLENBQUMsRUFBRSxFQUFFLE9BQU8sQ0FBQyxFQUFFLEVBQUUsQ0FBQyxjQUFJLENBQUMsRUFBRSxFQUFFLE9BQU8sQ0FBQyxDQUFDO2dCQUMxRSxLQUFLLEVBQUUsTUFBTSxDQUFDLEtBQUssQ0FBQyxHQUFHLENBQUMsQ0FBQyxLQUFLLEVBQUUsRUFBRSxDQUFDLG9CQUFTLENBQUMsSUFBSSxFQUFFLEtBQUssQ0FBQyxDQUFDO2dCQUMxRCxLQUFLLEVBQUUsTUFBTSxDQUFDLEtBQUs7Z0JBQ25CLFNBQVMsRUFBRSxNQUFNLENBQUMsU0FBUztnQkFDM0IsV0FBVyxFQUFFLE1BQU0sQ0FBQyxXQUFXO2dCQUMvQixNQUFNLEVBQUUsTUFBTSxDQUFDLE1BQU07Z0JBQ3JCLEtBQUssRUFBRSxNQUFNLENBQUMsS0FBSztnQkFDbkIsR0FBRyxFQUFFLE1BQU0sQ0FBQyxHQUFHO2FBQ2xCLENBQ0osQ0FBQztZQUVGLGdCQUFnQixDQUFDLElBQUksQ0FBQyxZQUFZLENBQUMsQ0FBQztTQUN2QztRQUVELE9BQU8sZ0JBQWdCLENBQUM7SUFDNUIsQ0FBQztDQUNKO0FBakRELGdDQWlEQyJ9 |
{ | ||
"name": "@reform/bundle", | ||
"version": "0.4.3", | ||
"version": "0.4.5", | ||
"main": "dist/index.js", | ||
@@ -21,8 +21,6 @@ "types": "dist/index.d.ts", | ||
"clean": "rimraf dist tsconfig.tsbuildinfo", | ||
"schema:update": "typescript-json-schema tsconfig.json IJSONBundle -o schema.json" | ||
"schema:update": "typescript-json-schema tsconfig.schema.json IJSONSchema -o schema.json" | ||
}, | ||
"dependencies": { | ||
"@types/glob": "^7.1.4", | ||
"@types/node": "^16.4.12", | ||
"@types/node-sass": "^4.11.2", | ||
"@types/parse5": "^6.0.1", | ||
@@ -35,2 +33,3 @@ "dotenv": "^10.0.0", | ||
"devDependencies": { | ||
"@types/node": "^16.4.12", | ||
"typescript-json-schema": "^0.50.1" | ||
@@ -46,3 +45,3 @@ }, | ||
"license": "MIT", | ||
"gitHead": "287a8d76ddf47143df685bb4ab0750c63e2231de" | ||
"gitHead": "3c459b6dfcd09c8734c2ec08b1335df4f2338bcd" | ||
} |
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
6
116221
2
1579
+ Added@types/node@22.10.1(transitive)
+ Addedundici-types@6.20.0(transitive)
- Removed@types/node@^16.4.12
- Removed@types/node-sass@^4.11.2
- Removed@types/node@16.18.121(transitive)
- Removed@types/node-sass@4.11.8(transitive)