镜像站点 · 本页由第三方 GitHub 只读镜像提供,非 GitHub 官方站点,不接受任何登录或凭据输入。前往 github.com
Skip to content

No docisfy.min.esm.js generated #1435

Closed

Description

@jcayzac

Bug Report

No docsify.esm.js or docsify.min.esm.js is generated by the build script although they're mentioned at:

// from the ESM build (f.e. lib/docsify.esm.js and lib/docsify.min.esm.js).

Modules have been supported by all browsers for 2 years. Please give us a module 😄

Steps to reproduce

curl https://unpkg.com/docsify@4.11.6/lib/docsify.esm.js

What is current behaviour

404 Not Found

What is the expected behaviour

200 OK

Other relevant information

  • Bug does still occur when all/other plugins are disabled?

  • Your OS:

  • Node.js version:

  • npm/yarn version:

  • Browser version:

  • Docsify version: 4.11.6

  • Docsify plugins:

Please create a reproducible sandbox

Edit 307qqv236

Mention the docsify version in which this bug was not present (if any)

Activity

  1. sy-records commented on Dec 1, 2020

    @sy-records
    Member

    Should be added in v5? @trusktr

    // TODO This is deprecated, kept for backwards compatibility. Remove in next
    // major release. We'll tell people to get everything from the DOCSIFY global
    // when using the global build, but we'll highly recommend for them to import
    // from the ESM build (f.e. lib/docsify.esm.js and lib/docsify.min.esm.js).
    
  2. trusktr commented on Dec 31, 2020

    @trusktr
    Member

    @sy-records Adding this is a non-breaking change. We could add it any time.

    For v4, it would still create globals (but also export the globals for convenience of importing). For v5, there would be no globals.

  3. added this to the 5.x milestone on Jun 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions