Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@inlang/core

Package Overview
Dependencies
Maintainers
1
Versions
48
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@inlang/core - npm Package Compare versions

Comparing version 0.5.2 to 0.5.3

6

dist/test/mockEnvironment.js

@@ -42,7 +42,7 @@ import { initialize$import } from "../config/index.js";

throw new Error(dedent `
The directory specified in \`copyDirectory.path\` does not exist.
The directory specified in \`copyDirectory.path\` does not exist.
Solution: Make sure that the \`copyDirectory.path\` is relative to the current working directory.
Solution: Make sure that the \`copyDirectory.path\` is relative to the current working directory.
Context: The path is relative to the current working directory, not the file that calls \`mockEnvironment\`.
Context: The path is relative to the current working directory, not the file that calls \`mockEnvironment\`.
`);

@@ -49,0 +49,0 @@ }

@@ -17,3 +17,3 @@ import type { BuildOptions } from "esbuild";

*/
export declare function pluginBuildConfig(options: Omit<BuildOptions, (typeof propertiesDefinedByInlang)[number]>): BuildOptions;
export declare function pluginBuildConfig(options: Omit<BuildOptions, (typeof propertiesDefinedByInlang)[number]>): Promise<BuildOptions>;
export {};

@@ -1,3 +0,4 @@

import { NodeModulesPolyfillPlugin } from "@esbuild-plugins/node-modules-polyfill";
import dedent from "dedent";
//! DON'T TOP-LEVEL IMPORT ESBUILD PLUGINS. USE DYNAMIC IMPORTS.
//! See https://github.com/inlang/inlang/issues/486
/**

@@ -18,3 +19,3 @@ * These properties are defined by inlang and should not be overwritten by the user.

*/
export function pluginBuildConfig(options) {
export async function pluginBuildConfig(options) {
// type casting. This is safe because we are only adding properties to the options object.

@@ -54,2 +55,7 @@ // furthermore, javascript uses references for objects. thus, no performance penalty.

// ------------ PLUGINS -------------------
//! It is important to dynamically import esbuild plugins here.
//! Otherwise, the imported plugins are included in
//! bundles that have @inlang/core as a dependency.
//! See https://github.com/inlang/inlang/issues/486
const { NodeModulesPolyfillPlugin } = await import("@esbuild-plugins/node-modules-polyfill");
if (ops.plugins === undefined) {

@@ -59,5 +65,5 @@ ops.plugins = [];

ops.plugins.push(
// @ts-ignore - for some reason we get a type error here
// @ts-expect-error
NodeModulesPolyfillPlugin());
return ops;
}
{
"name": "@inlang/core",
"type": "module",
"version": "0.5.2",
"version": "0.5.3",
"publishConfig": {

@@ -6,0 +6,0 @@ "access": "public"

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