question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

CDN version should be included in `https://github.com/eta-dev/eta/releases`

See original GitHub issue

Is your feature request related to a problem? Please describe.

I find absolutely no way to use Eta in Vite, other than

cp -r ./node_modules/eta/dist/browser ./public/vendor/eta
rm -r ./public/vendor/eta/*.dev.*
declare global {
  interface Window {
    Eta: typeof import('eta')
  }
}

const script = document.createElement('script')
script.src = '/vendor/eta/eta.min.js'
document.body.append(script)

const Eta = window.Eta

export default Eta

And vite.config.js

// https://vitejs.dev/config/
export default defineConfig({
  build: {
    rollupOptions: {
      external: /^\/vendor\//,
    },
  },
})

I also notice that eta.min.js does not exist anywhere in Github, only in NPM and various CDN’s.

Describe the solution you’d like

  1. Deploy eta.min.js and eta.min.js.map to https://github.com/eta-dev/eta/releases
  2. Solve https://github.com/eta-dev/eta/issues/122

Additional context

https://eta.js.org/docs/learn/install should include Browser (non CDN).

Issue Analytics

  • State:open
  • Created 2 years ago
  • Comments:5

github_iconTop GitHub Comments

1reaction
shadowtime2000commented, Aug 24, 2021

@patarapolw Sorry for the bad question, but why is it necessary for the CDN build to be included in the Github release? I’m a bit wary of adding it there because I’d rather only keep the source code in the Github releases

0reactions
patarapolwcommented, Oct 22, 2021

wget is a possible way.

It is probably better to host it yourself, rather than hotlinking from CDN.

Read more comments on GitHub >

github_iconTop Results From Across the Web

git - Managing releases on github & CDN
This is how i manage the tags and versions: Firstly, the the tag generation is done only when the master branch is updated....
Read more >
Failed to fetch version info for xxx/xxx. · Issue #18216
When I open this link: https://cdn.jsdelivr.net/gh/pexcn/daily@gh-pages/pac/, the following error will be reported: Failed to fetch version ...
Read more >
[Question] Monitor versions on CDN links in HTML #4781
Is there a way for me to get Renovate Bot to monitor the versions of Bootstrap and jQuery CDNs in some HTML files?...
Read more >
please make sure newest versions are CDNs. · Issue #374
I would love to include it from cdnjs but it's stuck at version 2.3.2 . I don't want to use npm, only the...
Read more >
GitHub url does not work when there are no releases #18101
I would expect the github url to work even when there are no releases and instead, use the master branch. For example, /gh/jsonmc/jsonmc/ ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found