deckchairlabs / mesozoic Goto Github PK
View Code? Open in Web Editor NEWA generic build system for Deno web apps
Home Page: https://deno.land/x/mesozoic
License: MIT License
A generic build system for Deno web apps
Home Page: https://deno.land/x/mesozoic
License: MIT License
I wonder if you could please help me diagnose a problem I am having vendoring a package?
I am building an application that has a skypark
dependency for graphql-type-json.
"graphql-type-json": "https://cdn.skypack.dev/[email protected]?dts",
The app builds ok but when running the application against the compiled source, I get this error:
error: Expected a JavaScript or TypeScript module, but identified a Unknown module. Importing these types of modules is currently not supported.
Specifier: file:///Users/paulcowan/projects/graphgen/server/.ultra/vendor/server/cdn.skypack.dev/[email protected]
at file:///Users/paulcowan/projects/graphgen/server/.ultra/src/graphql/schema.35f27db4.js:1:72
Looking at the generate importMap.server.json
it is creating an entry for graphql-type-json with
no file extension:
"graphql-type-json": "./vendor/server/cdn.skypack.dev/[email protected]",
And looking at the file system, it is generating a file with no file extension:
Looking at the output, it is actually creating files with no .js
extension:
I think we either need an option, or a default of copying non-hashed files as well? Helpful for when assets are linked in markdown/css/etc.
https://github.com/deckchairlabs/mesozoic/blob/main/lib/builder.ts#L255
I'm not sure this issue should go here, but I'm getting the following error when trying to build a fresh Ultra application:
error: Import 'https://esm.sh/[email protected]/es-module-lexer.js' failed: 500 Internal Server Error
at https://deno.land/x/[email protected]/lib/deps.ts:9:8
Need to workout how deno vendor
produces such nice and small importMaps.
Using root alias with Ultra build which uses mesozoic
causes problems:
`/~/` alias + build => Module not found on runtime | issue #290 | ultra:
entries for paths with aliases not created in .ultra/importMap.browser.json
and importMap.server.json
at all!
Please add root alias to fixture and resolve build errors.
For example:
{
"imports": {
"/~/": "/src/",
}
}
replace
import App from "./src/app.tsx"
with import App from "/~/app.tsx"
.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.