@swc-node/register
Advanced tools
Comparing version 1.1.0 to 1.2.0
@@ -6,2 +6,8 @@ # Change Log | ||
# [1.2.0](https://github.com/Brooooooklyn/swc-node/compare/@swc-node/register@1.1.0...@swc-node/register@1.2.0) (2021-04-28) | ||
### Features | ||
- **core:** expose inline and both config for sourcemap ([780f2bb](https://github.com/Brooooooklyn/swc-node/commit/780f2bb81053af6fc6af865a979059ffff470eac)) | ||
# [1.1.0](https://github.com/Brooooooklyn/swc-node/compare/@swc-node/register@1.0.5...@swc-node/register@1.1.0) (2021-04-21) | ||
@@ -8,0 +14,0 @@ |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.register = void 0; | ||
exports.createSourcemapOption = exports.register = void 0; | ||
const tslib_1 = require("tslib"); | ||
@@ -83,3 +83,3 @@ const os_1 = require("os"); | ||
module: toModule((_b = options.module) !== null && _b !== void 0 ? _b : ts.ModuleKind.ES2015), | ||
sourcemap: options.sourceMap !== false, | ||
sourcemap: createSourcemapOption(options), | ||
jsx: filename.endsWith('.tsx') || filename.endsWith('.jsx') || Boolean(options.jsx), | ||
@@ -112,2 +112,13 @@ react: options.jsxFactory || options.jsxFragmentFactory | ||
exports.register = register; | ||
// @internal | ||
function createSourcemapOption(options) { | ||
return options.sourceMap !== false | ||
? options.inlineSourceMap | ||
? 'both' | ||
: true | ||
: options.inlineSourceMap | ||
? 'inline' | ||
: false; | ||
} | ||
exports.createSourcemapOption = createSourcemapOption; | ||
//# sourceMappingURL=register.js.map |
{ | ||
"name": "@swc-node/register", | ||
"version": "1.1.0", | ||
"version": "1.2.0", | ||
"description": "SWC node register", | ||
@@ -41,5 +41,5 @@ "keywords": [ | ||
"dependencies": { | ||
"@swc-node/core": "^1.3.0", | ||
"@swc-node/core": "^1.4.0", | ||
"@swc-node/sourcemap-support": "^0.1.8", | ||
"chalk": "^4.1.0", | ||
"chalk": "^4.1.1", | ||
"debug": "^4.3.1", | ||
@@ -51,3 +51,7 @@ "pirates": "^4.0.1" | ||
}, | ||
"gitHead": "66d45d1e6c6d9d704de4491ea2b517d6dce3b0c8" | ||
"funding": { | ||
"type": "github", | ||
"url": "https://github.com/sponsors/Brooooooklyn" | ||
}, | ||
"gitHead": "2737279e210f0104cb7094a6c0906a1bb6f4c3df" | ||
} |
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
25353
171
Updated@swc-node/core@^1.4.0
Updatedchalk@^4.1.1