tsnite 0.2.1 → 0.2.2
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.
- package/dist/loader.js +3 -6
- package/package.json +2 -1
package/dist/loader.js
CHANGED
|
@@ -11,7 +11,7 @@ const transpileCache = new Map();
|
|
|
11
11
|
const MAX_TRANSPILE_CACHE_ENTRIES = 256;
|
|
12
12
|
const TS_EXTENSIONS = ['.cts', '.mts', '.tsx', '.ts'];
|
|
13
13
|
const SHOULD_LOG_TRANSPILE = process.env.TSNITE_LOG_TRANSPILE === '1';
|
|
14
|
-
const TRANSPILE_CONFIG_HASH = hash('target:
|
|
14
|
+
const TRANSPILE_CONFIG_HASH = hash('target:esnext|jsx:automatic|decorator:legacy|emitDecoratorMetadata:true|helpers:runtime');
|
|
15
15
|
const resolver = new ResolverFactory({
|
|
16
16
|
conditionNames: ['node', 'import'],
|
|
17
17
|
extensions: ['.cts', '.mts', '.tsx', '.ts', '.cjs', '.mjs', '.js', '.json'],
|
|
@@ -133,11 +133,8 @@ export async function load(url, ctx, next) {
|
|
|
133
133
|
},
|
|
134
134
|
sourcemap: true,
|
|
135
135
|
sourceType: 'module',
|
|
136
|
-
target: '
|
|
137
|
-
decorator: {
|
|
138
|
-
emitDecoratorMetadata: true,
|
|
139
|
-
legacy: true
|
|
140
|
-
}
|
|
136
|
+
target: 'esnext',
|
|
137
|
+
decorator: { legacy: true, emitDecoratorMetadata: true }
|
|
141
138
|
});
|
|
142
139
|
if (SHOULD_LOG_TRANSPILE) {
|
|
143
140
|
const transpileTimeMs = Date.now() - transpileStart;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "tsnite",
|
|
3
3
|
"description": "TypeScript at full throttle—fast, safe, unstoppable. 🚀",
|
|
4
|
-
"version": "0.2.
|
|
4
|
+
"version": "0.2.2",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"cli",
|
|
7
7
|
"esm",
|
|
@@ -31,6 +31,7 @@
|
|
|
31
31
|
"prepare": "husky"
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
|
+
"@oxc-project/runtime": "^0.127.0",
|
|
34
35
|
"chokidar": "^5.0.0",
|
|
35
36
|
"commander": "^14.0.3",
|
|
36
37
|
"oxc-resolver": "^11.19.1",
|