Something went wrong. Try again.
[READ-ONLY] Mirror of https://github.com/okikio/node-6kx4cy. Created with StackBlitz ⚡️ stackblitz.com/edit/node-6kx4cy
Something went wrong. Try again.
node-6kx4cy run.js
1234567891011121314151617181920212223242526272829303132333435363738394041import esbuild from 'esbuild-wasm';await esbuild.initialize({ wasmURL: '/node_modules/esbuild-wasm/esbuild.wasm',});await esbuild.build({ target: ['esnext'], format: 'esm', bundle: true, minify: false, treeShaking: false, platform: 'browser', color: true, globalName: 'BundledCode', logLevel: 'info', sourcemap: false,
stdin: { // Ensure input is a string contents: `\// Click Build for the Bundled, Minified & Compressed package sizeexport { isAfter } from 'date-fns';`, loader: 'ts', sourcefile: `/input.ts`, },
metafile: true, loader: { '.png': 'file', '.jpeg': 'file', '.ttf': 'file', '.svg': 'text', '.html': 'text', '.scss': 'css', }, define: { __NODE__: `false`, 'process.env.NODE_ENV': `"production"`, }, outfile: 'out-wasm.js',});