First commit
This commit is contained in:
34
framework/npmScripts/esbuild/esbuild.client.js
Normal file
34
framework/npmScripts/esbuild/esbuild.client.js
Normal file
@@ -0,0 +1,34 @@
|
||||
|
||||
|
||||
import binaryName from "../../node_modules/esbuild/getBinaryName.js"
|
||||
|
||||
|
||||
|
||||
import child_process from 'child_process';
|
||||
|
||||
var options = new Object();
|
||||
|
||||
options.stdio = 'inherit';
|
||||
|
||||
var args = new Array();
|
||||
|
||||
|
||||
|
||||
args.push("--bundle")
|
||||
|
||||
args.push('out1=framework/client/index.js')
|
||||
|
||||
args.push("--outfile=assets/bundle.js")
|
||||
|
||||
args.push("--keep-names")
|
||||
|
||||
args.push('--external:fs, better-sqlite3, process')
|
||||
|
||||
args.push('--format=esm')
|
||||
|
||||
|
||||
|
||||
var child = child_process.spawn( binaryName, args, options );
|
||||
|
||||
|
||||
console.log(binaryName);
|
||||
Reference in New Issue
Block a user