Tibbs
Transpile TS to browser-safe JS with no dependencies?
Hey friends!
Is there a way to combine Deno CLI commands or configs to transpile my source code from TS to browser-safe JS without pulling in a dependency like the NPM-hosted TS binary? I just want the source transpiled and concatinated, maybe minified. What's the easiest way to do this in a Deno project?
Thanks!
10 replies
Unable to find NPM:Rollup 4.1.4 on M1 Mac
Hi all, hooking up a new build process for UI project, trying to use Rollup on an M1 Mac.
My build script starts with:
import { rollup } from "npm:rollup@4.1.4";
import html from "npm:@rollup/plugin-html@1.0.3";
This works great on Deno for Windows, but on my M1 Mac, I get the following error in the terminal:
error: Uncaught Error: Cannot find module '@rollup/rollup-darwin-arm64'
Is it possible to force Deno to load the x86-64 version of the NPM package, and use the M1's compatibility layer, or otherwise get this package pulled down normally in a way that's compatible?
Thanks,
Tibbs
2 replies