Socket
Socket
Sign inDemoInstall

@swc/core

Package Overview
Dependencies
Maintainers
1
Versions
687
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@swc/core - npm Package Compare versions

Comparing version 1.0.22 to 1.0.23

21

__tests__/module_test.js

@@ -37,1 +37,22 @@

});
it('should work with amd and expternal helpers', () => {
const out = swc.transformSync(`class Foo {}
class Bar extends Foo {}`, {
jsc: {
externalHelpers: true,
},
module: {
type: "amd",
moduleId: 'a',
}
}
);
expect(out.map).toBeUndefined();
expect(out.code).toContain(`define('a', ['@swc/helpers'], function(swcHelpers) {`)
expect(out.code).toContain(`swcHelpers.classCallCheck(this, Foo);`);
expect(out.code).toContain(`swcHelpers.inherits(Bar, _Foo);`);
});

2

package.json
{
"name": "@swc/core",
"version": "1.0.22",
"version": "1.0.23",
"description": "Super-fast alternative for babel",

@@ -5,0 +5,0 @@ "main": "lib/index.js",

Sorry, the diff of this file is not supported yet

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