GithubHelp home page GithubHelp logo

Bundle error. about aqua HOT 4 CLOSED

gr7d avatar gr7d commented on May 28, 2024 1
Bundle error.

from aqua.

Comments (4)

gr7d avatar gr7d commented on May 28, 2024

Could you tell me what you are using the Deno bundle command for? I don't quite get why you would bundle a server-side app

from aqua.

 avatar commented on May 28, 2024

I work on the principle of frontend development. :-)
In a front we connect js like this: <script src="JS/main.js"></script>
Deno bundle command allows you to use a similar method:

  1. we run bundle and get a ready-made library, as if it is some kind of script on the frontend.
  2. next, we connect it in the main file: import { module } from './local_module.js'
    as a result, we get a project management structure similar to the frontend.

modules_folder
    aqua.js
    dndb.js
    djwt.js
    more_modules.js ...
    

I know this is not a common and not quite right method but it

  1. is very convenient for a beginner in the backend.
  2. I control all the code of the entire application without caching.

from aqua.

gr7d avatar gr7d commented on May 28, 2024

I don't think there is an easy way of fixing it right now.
This bug has already been fixed in SWC (swc-project/swc#1264), but I think it hasn't landed in the Deno CLI yet.

Here's a workaround:
Use deno bundle https://deno.land/x/aqua@VERSION/aqua.ts aqua.js instead of deno bundle https://deno.land/x/aqua@VERSION/mod.ts aqua.js.

from aqua.

 avatar commented on May 28, 2024

Спасибо!

from aqua.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.