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

@s-ui/compiler-config

Package Overview
Dependencies
Maintainers
71
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@s-ui/compiler-config - npm Package Compare versions

Comparing version 1.0.0 to 1.1.0-typescript-support.0

23

package.json

@@ -1,22 +0,1 @@

{
"name": "@s-ui/compiler-config",
"version": "1.0.0",
"description": "Compilers config (SWC, TS...) for SUI projects.",
"main": "src/index.js",
"scripts": {},
"keywords": [],
"author": "",
"license": "MIT",
"repository": {
"type": "git",
"url": "git+https://github.com/SUI-Components/sui.git"
},
"bugs": {
"url": "https://github.com/SUI-Components/sui/issues"
},
"homepage": "https://github.com/SUI-Components/sui/tree/master/packages/sui-compiler-config#readme",
"dependencies": {
"@tsconfig/esm": "1.0.4",
"@tsconfig/vite-react": "2.0.0"
}
}
{"name":"@s-ui/compiler-config","version":"1.1.0-typescript-support.0","description":"Compilers config (SWC, TS...) for SUI projects.","main":"src/index.js","scripts":{},"keywords":[],"author":"","license":"MIT","repository":{"type":"git","url":"git+https://github.com/SUI-Components/sui.git"},"bugs":{"url":"https://github.com/SUI-Components/sui/issues"},"homepage":"https://github.com/SUI-Components/sui/tree/master/packages/sui-compiler-config#readme","dependencies":{"@tsconfig/esm":"1.0.4","@tsconfig/vite-react":"2.0.0"}}

14

src/index.js

@@ -13,13 +13,5 @@ const DEFAULT_LEGACY_BROWSER_TARGETS = {

const getSWCConfig = ({
isModern = false,
isTypeScript = false,
compileToCJS = false
}) => {
const targets = isModern
? DEFAULT_BROWSER_TARGETS
: DEFAULT_LEGACY_BROWSER_TARGETS
const syntaxOptions = isTypeScript
? {syntax: 'typescript', tsx: true}
: {syntax: 'ecmascript', jsx: true}
const getSWCConfig = ({isModern = false, isTypeScript = false, compileToCJS = false}) => {
const targets = isModern ? DEFAULT_BROWSER_TARGETS : DEFAULT_LEGACY_BROWSER_TARGETS
const syntaxOptions = isTypeScript ? {syntax: 'typescript', tsx: true} : {syntax: 'ecmascript', jsx: true}
const moduleOptions = compileToCJS ? {module: {type: 'commonjs'}} : {}

@@ -26,0 +18,0 @@

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