@swc/core 1.2.83 → 1.2.88

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/index.js +2 -0
  2. package/package.json +13 -13
  3. package/types.d.ts +2 -0
package/index.js CHANGED
@@ -142,6 +142,7 @@ class Compiler {
142
142
  options.jsc.parser.syntax = (_b = options.jsc.parser.syntax) !== null && _b !== void 0 ? _b : 'ecmascript';
143
143
  }
144
144
  const { plugin } = options, newOptions = __rest(options, ["plugin"]);
145
+ newOptions.filename = path;
145
146
  if (plugin) {
146
147
  const m = yield this.parseFile(path, (_c = options === null || options === void 0 ? void 0 : options.jsc) === null || _c === void 0 ? void 0 : _c.parser);
147
148
  return this.transform(plugin(m), newOptions);
@@ -156,6 +157,7 @@ class Compiler {
156
157
  options.jsc.parser.syntax = (_b = options.jsc.parser.syntax) !== null && _b !== void 0 ? _b : 'ecmascript';
157
158
  }
158
159
  const { plugin } = options, newOptions = __rest(options, ["plugin"]);
160
+ newOptions.filename = path;
159
161
  if (plugin) {
160
162
  const m = this.parseFileSync(path, (_c = options === null || options === void 0 ? void 0 : options.jsc) === null || _c === void 0 ? void 0 : _c.parser);
161
163
  return this.transformSync(plugin(m), newOptions);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@swc/core",
3
- "version": "1.2.83",
3
+ "version": "1.2.88",
4
4
  "description": "Super-fast alternative for babel",
5
5
  "homepage": "https://swc.rs",
6
6
  "main": "./index.js",
@@ -91,17 +91,17 @@
91
91
  "url": "https://opencollective.com/swc"
92
92
  },
93
93
  "optionalDependencies": {
94
- "@swc/core-win32-x64-msvc": "^1.2.83",
95
- "@swc/core-darwin-x64": "^1.2.83",
96
- "@swc/core-linux-x64-gnu": "^1.2.83",
97
- "@swc/core-linux-x64-musl": "^1.2.83",
98
- "@swc/core-win32-ia32-msvc": "^1.2.83",
99
- "@swc/core-linux-arm64-gnu": "^1.2.83",
100
- "@swc/core-linux-arm-gnueabihf": "^1.2.83",
101
- "@swc/core-darwin-arm64": "^1.2.83",
102
- "@swc/core-android-arm64": "^1.2.83",
103
- "@swc/core-freebsd-x64": "^1.2.83",
104
- "@swc/core-linux-arm64-musl": "^1.2.83",
105
- "@swc/core-win32-arm64-msvc": "^1.2.83"
94
+ "@swc/core-win32-x64-msvc": "^1.2.88",
95
+ "@swc/core-darwin-x64": "^1.2.88",
96
+ "@swc/core-linux-x64-gnu": "^1.2.88",
97
+ "@swc/core-linux-x64-musl": "^1.2.88",
98
+ "@swc/core-win32-ia32-msvc": "^1.2.88",
99
+ "@swc/core-linux-arm64-gnu": "^1.2.88",
100
+ "@swc/core-linux-arm-gnueabihf": "^1.2.88",
101
+ "@swc/core-darwin-arm64": "^1.2.88",
102
+ "@swc/core-android-arm64": "^1.2.88",
103
+ "@swc/core-freebsd-x64": "^1.2.88",
104
+ "@swc/core-linux-arm64-musl": "^1.2.88",
105
+ "@swc/core-win32-arm64-msvc": "^1.2.88"
106
106
  }
107
107
  }
package/types.d.ts CHANGED
@@ -21,6 +21,7 @@ export interface JsMinifyOptions {
21
21
  toplevel?: boolean;
22
22
  sourceMap?: boolean;
23
23
  outputPath?: string;
24
+ inlineSourcesContent?: boolean;
24
25
  }
25
26
  export interface TerserCompressOptions {
26
27
  arguments?: boolean;
@@ -279,6 +280,7 @@ export interface Config {
279
280
  * and handle the rest in your own code, depending on your use case.
280
281
  */
281
282
  sourceMaps?: boolean | "inline";
283
+ inlineSourcesContent?: boolean;
282
284
  }
283
285
  /**
284
286
  * Configuration ported from babel-preset-env