Skip to content

[Bug]: dynamic import 'open' package, no __rslib_import_meta_url api function in artifact reduce the error. #1277

@yifancong

Description

@yifancong

Version

@rslib/* 0.15.1

Details

The link of the packages/sdk/src/sdk/utils/openBrowser.ts file, its cjs(/dist/1~336.cjs) artifact used the __rslib_import_meta_url but never defined. https://www.npmjs.com/package/@rsdoctor/sdk?activeTab=code

So reduce the error that blowing:

Image

It's useless to open shims.

Reproduce link

https://github.com/web-infra-dev/rsdoctor/blob/main/packages/sdk/src/sdk/utils/openBrowser.ts

Reproduce Steps

  1. execute the pnpm i
  2. check the artifact packages/sdk/dist/1~336.cjs

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions