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

@rollup/plugin-swc

Package Overview
Dependencies
Maintainers
4
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@rollup/plugin-swc - npm Package Compare versions

Comparing version 0.1.0 to 0.1.1

4

dist/cjs/index.js

@@ -9,3 +9,3 @@ 'use strict';

function swc(input = {}) {
const swcOptions = smob.merge({
const swcOptions = smob.merge({}, input.swc || {}, {
jsc: {

@@ -23,3 +23,3 @@ target: 'es2020',

}
}, input.swc || {});
});
return {

@@ -26,0 +26,0 @@ name: 'swc',

@@ -5,3 +5,3 @@ import { transform } from '@swc/core';

function swc(input = {}) {
const swcOptions = merge({
const swcOptions = merge({}, input.swc || {}, {
jsc: {

@@ -19,3 +19,3 @@ target: 'es2020',

}
}, input.swc || {});
});
return {

@@ -22,0 +22,0 @@ name: 'swc',

{
"name": "@rollup/plugin-swc",
"version": "0.1.0",
"version": "0.1.1",
"publishConfig": {

@@ -56,3 +56,3 @@ "access": "public"

"peerDependencies": {
"@swc/core": "^1.x",
"@swc/core": "^1.3.x",
"rollup": "^3.x"

@@ -66,6 +66,6 @@ },

"dependencies": {
"smob": "^0.0.6"
"smob": "^1.0.0"
},
"devDependencies": {
"@swc/core": "^1.3.27",
"@swc/core": "^1.3.58",
"rollup": "^3.0.0-7",

@@ -72,0 +72,0 @@ "typescript": "^4.8.3"

@@ -9,19 +9,16 @@ import type { Plugin } from 'rollup';

export function swc(input: Options = {}): Plugin {
const swcOptions: SWCOptions = merge(
{
jsc: {
target: 'es2020',
parser: {
syntax: 'typescript',
decorators: true
},
transform: {
decoratorMetadata: true,
legacyDecorator: true
},
loose: true
}
},
input.swc || {}
);
const swcOptions: SWCOptions = merge({}, input.swc || {}, {
jsc: {
target: 'es2020',
parser: {
syntax: 'typescript',
decorators: true
},
transform: {
decoratorMetadata: true,
legacyDecorator: true
},
loose: true
}
});

@@ -28,0 +25,0 @@ return {

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