@flightdev/bundler-turboflight 0.1.1

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/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2024-2026 Flight Contributors
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,71 @@
1
+ /**
2
+ * @flightdev/bundler-turboflight
3
+ *
4
+ * Turboflight bundler adapter for Flight Framework.
5
+ * Provides high-performance native bundling via Rust NAPI bindings.
6
+ */
7
+ import type { BundlerAdapter } from '@flightdev/bundler';
8
+ interface NativeTransformResult {
9
+ code: string;
10
+ map?: string;
11
+ errors: string[];
12
+ }
13
+ interface NativeResolveResult {
14
+ path: string;
15
+ packageName?: string;
16
+ isExternal: boolean;
17
+ isBuiltin: boolean;
18
+ }
19
+ interface NativeModuleAnalysis {
20
+ imports: Array<{
21
+ source: string;
22
+ isTypeOnly: boolean;
23
+ }>;
24
+ exports: string[];
25
+ dynamicImports: string[];
26
+ hasTopLevelAwait: boolean;
27
+ isCommonjs: boolean;
28
+ }
29
+ /**
30
+ * Turboflight bundler adapter configuration
31
+ */
32
+ export interface TurboflightOptions {
33
+ /** Enable debug logging */
34
+ debug?: boolean;
35
+ /** External modules (not bundled) */
36
+ external?: string[];
37
+ /** Path aliases */
38
+ alias?: Record<string, string>;
39
+ /** Target format: esm, cjs, iife */
40
+ format?: 'esm' | 'cjs' | 'iife';
41
+ /** Entry points (defaults to src/main.tsx) */
42
+ entry?: string[];
43
+ }
44
+ /**
45
+ * Create a Turboflight bundler adapter
46
+ */
47
+ export declare function turboflight(options?: TurboflightOptions): BundlerAdapter;
48
+ /**
49
+ * Transform a single file
50
+ */
51
+ export declare function transform(filename: string, code: string, opts?: {
52
+ target?: string;
53
+ sourcemap?: boolean;
54
+ }): NativeTransformResult;
55
+ /**
56
+ * Resolve a module specifier
57
+ */
58
+ export declare function resolve(specifier: string, from: string, opts?: {
59
+ root?: string;
60
+ external?: string[];
61
+ }): NativeResolveResult;
62
+ /**
63
+ * Analyze a module
64
+ */
65
+ export declare function analyze(filename: string, code: string): NativeModuleAnalysis;
66
+ /**
67
+ * Get Turboflight version
68
+ */
69
+ export declare function version(): string;
70
+ export default turboflight;
71
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAKH,OAAO,KAAK,EACR,cAAc,EAIjB,MAAM,oBAAoB,CAAC;AA2D5B,UAAU,qBAAqB;IAC3B,IAAI,EAAE,MAAM,CAAC;IACb,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,EAAE,CAAC;CACpB;AASD,UAAU,mBAAmB;IACzB,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,UAAU,EAAE,O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,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,oBAAoB,CAG5E;AAED;;GAEG;AACH,wBAAgB,OAAO,IAAI,MAAM,CAGhC;AAED,eAAe,WAAW,CAAC"}
package/dist/index.js ADDED
@@ -0,0 +1,179 @@
1
+ /**
2
+ * @flightdev/bundler-turboflight
3
+ *
4
+ * Turboflight bundler adapter for Flight Framework.
5
+ * Provides high-performance native bundling via Rust NAPI bindings.
6
+ */
7
+ import { createRequire } from 'node:module';
8
+ import { dirname, join } from 'node:path';
9
+ import { fileURLToPath } from 'node:url';
10
+ const require = createRequire(import.meta.url);
11
+ const __dirname = dirname(fileURLToPath(import.meta.url));
12
+ // Load native bindings
13
+ let native = null;
14
+ function loadNative() {
15
+ if (native)
16
+ return native;
17
+ try {
18
+ const platform = process.platform;
19
+ const arch = process.arch;
20
+ const platformMap = {
21
+ 'win32-x64': '@turboflight/native-win32-x64-msvc',
22
+ 'darwin-arm64': '@turboflight/native-darwin-arm64',
23
+ 'darwin-x64': '@turboflight/native-darwin-x64',
24
+ 'linux-x64': '@turboflight/native-linux-x64-gnu',
25
+ };
26
+ const key = `${platform}-${arch}`;
27
+ const packageName = platformMap[key];
28
+ if (!packageName) {
29
+ throw new Error(`Unsupported platform: ${key}`);
30
+ }
31
+ native = require(packageName);
32
+ return native;
33
+ }
34
+ catch (error) {
35
+ try {
36
+ // Try local native binding (for development)
37
+ const nativePath = join(__dirname, '..', 'native', 'turboflight.node');
38
+ native = require(nativePath);
39
+ return native;
40
+ }
41
+ catch {
42
+ throw new Error(`Failed to load Turboflight native bindings. ` +
43
+ `Make sure @turboflight/native-* is installed for your platform. ` +
44
+ `Original error: ${error}`);
45
+ }
46
+ }
47
+ }
48
+ /**
49
+ * Create a Turboflight bundler adapter
50
+ */
51
+ export function turboflight(options = {}) {
52
+ let initialized = false;
53
+ const ensureInitialized = () => {
54
+ if (!initialized) {
55
+ const native = loadNative();
56
+ native.initLogger(options.debug ? 'debug' : 'info');
57
+ initialized = true;
58
+ }
59
+ };
60
+ return {
61
+ name: 'turboflight',
62
+ bundler: 'turboflight',
63
+ async createDevServer(config) {
64
+ ensureInitialized();
65
+ const native = loadNative();
66
+ // Get entry from options or derive from srcDir
67
+ const entry = options.entry ?? [`${config.build.srcDir}/main.tsx`];
68
+ const devServer = await native.dev({
69
+ entry,
70
+ root: config.root,
71
+ port: config.dev.port,
72
+ host: typeof config.dev.host === 'string' ? config.dev.host : 'localhost',
73
+ hmr: true,
74
+ });
75
+ const portMatch = devServer.url.match(/:(\d+)/);
76
+ const port = portMatch ? parseInt(portMatch[1], 10) : config.dev.port;
77
+ return {
78
+ url: devServer.url,
79
+ port,
80
+ host: typeof config.dev.host === 'string' ? config.dev.host : 'localhost',
81
+ https: !!config.dev.https,
82
+ async close() {
83
+ await devServer.stop();
84
+ },
85
+ async restart() {
86
+ await devServer.stop();
87
+ },
88
+ reload() {
89
+ // HMR reload
90
+ },
91
+ hmrUpdate() {
92
+ // HMR update
93
+ },
94
+ printUrls() {
95
+ console.log(` ➜ Local: ${devServer.url}`);
96
+ },
97
+ };
98
+ },
99
+ async build(config) {
100
+ ensureInitialized();
101
+ const native = loadNative();
102
+ // Get entry from options or derive from srcDir
103
+ const entry = options.entry ?? [`${config.build.srcDir}/entry-client.tsx`];
104
+ const outDir = config.build.outDir;
105
+ try {
106
+ const result = await native.build({
107
+ entry,
108
+ outDir,
109
+ root: config.root,
110
+ minify: config.build.minify !== false,
111
+ sourcemap: config.build.sourcemap !== false,
112
+ format: options.format,
113
+ external: options.external,
114
+ alias: options.alias,
115
+ });
116
+ const warnings = result.warnings.map((w) => ({
117
+ message: w,
118
+ }));
119
+ return {
120
+ success: true, // Build succeeded if we get here
121
+ duration: result.durationMs,
122
+ moduleCount: result.moduleCount, // Add module count from native result
123
+ outDir,
124
+ totalSize: result.outputs.reduce((sum, o) => sum + o.size, 0),
125
+ files: result.outputs.map((o) => ({
126
+ path: o.path,
127
+ size: o.size,
128
+ type: o.entryName ? 'entry' : 'chunk',
129
+ })),
130
+ errors: [],
131
+ warnings,
132
+ };
133
+ }
134
+ catch (error) {
135
+ const errorMessage = error instanceof Error ? error.message : String(error);
136
+ console.error('Turboflight build error:', errorMessage);
137
+ return {
138
+ success: false,
139
+ duration: 0,
140
+ outDir,
141
+ totalSize: 0,
142
+ files: [],
143
+ errors: [{ message: errorMessage }],
144
+ warnings: [],
145
+ };
146
+ }
147
+ },
148
+ };
149
+ }
150
+ /**
151
+ * Transform a single file
152
+ */
153
+ export function transform(filename, code, opts) {
154
+ const native = loadNative();
155
+ return native.transform({ filename, code, ...opts });
156
+ }
157
+ /**
158
+ * Resolve a module specifier
159
+ */
160
+ export function resolve(specifier, from, opts) {
161
+ const native = loadNative();
162
+ return native.resolve({ specifier, from, ...opts });
163
+ }
164
+ /**
165
+ * Analyze a module
166
+ */
167
+ export function analyze(filename, code) {
168
+ const native = loadNative();
169
+ return native.analyze(filename, code);
170
+ }
171
+ /**
172
+ * Get Turboflight version
173
+ */
174
+ export function version() {
175
+ const native = loadNative();
176
+ return native.version();
177
+ }
178
+ export default turboflight;
179
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAC5C,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAC1C,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AASzC,MAAM,OAAO,GAAG,aAAa,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AAC/C,MAAM,SAAS,GAAG,OAAO,CAAC,aAAa,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC;AAmF1D,uBAAuB;AACvB,IAAI,MAAM,GAA0B,IAAI,CAAC;AAEzC,SAAS,UAAU;IACf,IAAI,MAAM;QAAE,OAAO,MAAM,C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MAAM,CAAC,SAAS,CAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,GAAG,IAAI,EAAE,CAAC,CAAC;AACzD,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,OAAO,CACnB,SAAiB,EACjB,IAAY,EACZ,IAA6C;IAE7C,MAAM,MAAM,GAAG,UAAU,EAAE,CAAC;IAC5B,OAAO,MAAM,CAAC,OAAO,CAAC,EAAE,SAAS,EAAE,IAAI,EAAE,GAAG,IAAI,EAAE,CAAC,CAAC;AACxD,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,OAAO,CAAC,QAAgB,EAAE,IAAY;IAClD,MAAM,MAAM,GAAG,UAAU,EAAE,CAAC;IAC5B,OAAO,MAAM,CAAC,OAAO,CAAC,QAAQ,EAAE,IAAI,CAAC,CAAC;AAC1C,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,OAAO;IACnB,MAAM,MAAM,GAAG,UAAU,EAAE,CAAC;IAC5B,OAAO,MAAM,CAAC,OAAO,EAAE,CAAC;AAC5B,CAAC;AAED,eAAe,WAAW,CAAC"}
Binary file
Binary file
package/package.json ADDED
@@ -0,0 +1,69 @@
1
+ {
2
+ "name": "@flightdev/bundler-turboflight",
3
+ "version": "0.1.1",
4
+ "description": "Turboflight bundler adapter for Flight Framework",
5
+ "type": "module",
6
+ "main": "./dist/index.js",
7
+ "types": "./dist/index.d.ts",
8
+ "exports": {
9
+ ".": {
10
+ "import": "./dist/index.js",
11
+ "types": "./dist/index.d.ts"
12
+ }
13
+ },
14
+ "files": [
15
+ "dist",
16
+ "native"
17
+ ],
18
+ "dependencies": {
19
+ "@flightdev/bundler": "3.0.0"
20
+ },
21
+ "devDependencies": {
22
+ "@types/node": "^22.0.0",
23
+ "rimraf": "^6.0.0",
24
+ "typescript": "^5.7.0"
25
+ },
26
+ "peerDependencies": {
27
+ "@flightdev/core": "0.6.7"
28
+ },
29
+ "optionalDependencies": {
30
+ "@turboflight/native-win32-x64-msvc": "0.1.0",
31
+ "@turboflight/native-darwin-arm64": "0.1.0",
32
+ "@turboflight/native-linux-x64-gnu": "0.1.0"
33
+ },
34
+ "napi": {
35
+ "name": "turboflight",
36
+ "triples": {
37
+ "defaults": false,
38
+ "additional": [
39
+ "x86_64-pc-windows-msvc",
40
+ "x86_64-apple-darwin",
41
+ "aarch64-apple-darwin",
42
+ "x86_64-unknown-linux-gnu"
43
+ ]
44
+ }
45
+ },
46
+ "engines": {
47
+ "node": ">=20.0.0"
48
+ },
49
+ "license": "MIT",
50
+ "repository": {
51
+ "type": "git",
52
+ "url": "https://github.com/flight-framework/flight",
53
+ "directory": "packages/bundler-turboflight"
54
+ },
55
+ "keywords": [
56
+ "flight",
57
+ "bundler",
58
+ "turboflight",
59
+ "turbopack",
60
+ "rust",
61
+ "napi"
62
+ ],
63
+ "scripts": {
64
+ "build": "tsc",
65
+ "build:native": "cd ../turboflight && npm run build",
66
+ "dev": "tsc --watch",
67
+ "clean": "rimraf dist"
68
+ }
69
+ }