@swc/core
Advanced tools
Comparing version 1.0.22 to 1.0.23
@@ -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);`); | ||
}); |
{ | ||
"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
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
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
135234
1381