@s-ui/compiler-config
Advanced tools
Comparing version 1.0.0 to 1.1.0-typescript-support.0
@@ -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"}} |
@@ -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 @@ |
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
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
1976
57
1