Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

@granite-js/plugin-core

Package Overview
Dependencies
Maintainers
5
Versions
85
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@granite-js/plugin-core - npm Package Compare versions

Comparing version
1.0.25
to
1.0.26
+8
-0
CHANGELOG.md
# @granite-js/plugin-core
## 1.0.26
### Patch Changes
- b50c12f: propagate esbuild resolve result options in alias resolver
- 4acc9d6: Add INTERNAL\_\_esbuildOptions to allow dynamic configuration of esbuild build options.
- @granite-js/utils@1.0.26
## 1.0.25

@@ -4,0 +12,0 @@

+2
-3

@@ -281,5 +281,4 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });

return otherConfigs.reduce((acc, curr) => ({
entry: acc.entry ?? curr.entry,
outfile: acc.outfile ?? curr.outfile,
platform: acc.platform ?? curr.platform,
...acc,
...curr,
resolver: mergeResolver(acc.resolver, curr.resolver),

@@ -286,0 +285,0 @@ transformer: mergeTransformer(acc.transformer, curr.transformer),

+8
-1

@@ -80,2 +80,9 @@ import * as swc from "@swc/core";

reactNativePath?: string;
/**
* Finalize esbuild build options dynamically
*/
INTERNAL__esbuildOptions?: (context: {
platform: string;
dev: boolean;
}, buildOptions: esbuild.BuildOptions) => Promise<esbuild.BuildOptions> | esbuild.BuildOptions;
}

@@ -129,3 +136,3 @@ interface ResolverConfig {

type ResolveResult = string | ResolveResultWithOptions;
interface ResolveResultWithOptions extends Omit<esbuild.ResolveOptions, 'pluginName' | 'pluginData'> {
interface ResolveResultWithOptions extends esbuild.ResolveOptions, esbuild.OnResolveResult {
path: string;

@@ -132,0 +139,0 @@ }

@@ -80,2 +80,9 @@ import * as z from "zod";

reactNativePath?: string;
/**
* Finalize esbuild build options dynamically
*/
INTERNAL__esbuildOptions?: (context: {
platform: string;
dev: boolean;
}, buildOptions: esbuild.BuildOptions) => Promise<esbuild.BuildOptions> | esbuild.BuildOptions;
}

@@ -129,3 +136,3 @@ interface ResolverConfig {

type ResolveResult = string | ResolveResultWithOptions;
interface ResolveResultWithOptions extends Omit<esbuild.ResolveOptions, 'pluginName' | 'pluginData'> {
interface ResolveResultWithOptions extends esbuild.ResolveOptions, esbuild.OnResolveResult {
path: string;

@@ -132,0 +139,0 @@ }

@@ -250,5 +250,4 @@ import { assert, isNotNil } from "es-toolkit";

return otherConfigs.reduce((acc, curr) => ({
entry: acc.entry ?? curr.entry,
outfile: acc.outfile ?? curr.outfile,
platform: acc.platform ?? curr.platform,
...acc,
...curr,
resolver: mergeResolver(acc.resolver, curr.resolver),

@@ -255,0 +254,0 @@ transformer: mergeTransformer(acc.transformer, curr.transformer),

{
"name": "@granite-js/plugin-core",
"type": "module",
"version": "1.0.25",
"version": "1.0.26",
"description": "The core plugin module for Granite",

@@ -44,3 +44,3 @@ "scripts": {

"dependencies": {
"@granite-js/utils": "1.0.25",
"@granite-js/utils": "1.0.26",
"@swc/core": "1.15.8",

@@ -47,0 +47,0 @@ "@types/babel__core": "^7",