Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Export asciinema-player.min.js #263

Closed
jvalkeal opened this issue Jun 20, 2024 · 0 comments
Closed

Export asciinema-player.min.js #263

jvalkeal opened this issue Jun 20, 2024 · 0 comments

Comments

@jvalkeal
Copy link

I've been using require to resolve asciinema-player.css and asciinema-player.min.js from an npm package to copy those into my app. Recent release 3.8.0 added exports to package.json. While css is there, minified js is not.

Node will then throw error:

Package subpath './dist/bundle/asciinema-player.min.js' is not defined by "exports"...

Would it be possible to add it, something like:

  "exports": {
    ".": "./dist/index.js",
    "./dist/bundle/asciinema-player.css": "./dist/bundle/asciinema-player.css",
    "./dist/bundle/asciinema-player.min.js": "./dist/bundle/asciinema-player.min.js"
  },
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant