privatenumber / pkg-size.dev

📦🔍 Find the true size of an npm package
https://pkg-size.dev
688 stars 6 forks source link

"Entry point ... cannot be marked as external" error when viewing bundle size for @sveltejs/package built libraries #26

Open techniq opened 10 months ago

techniq commented 10 months ago

Problem

When attempted to inspect Svelte UX on pkg-size.dev, I receive the following error:

Error: Process exited with code 1
✘ [ERROR] The entry point "svelte-ux" cannot be marked as external

Error: Build failed with 1 error:
error: The entry point "svelte-ux" cannot be marked as external
    at _0x389c10._evaluate (https://httpspkgsizedev-jeqp.w-corp.staticblitz.com/blitz.420f2654.js:352:382041)
    at async ModuleJob.run (https://httpspkgsizedev-jeqp.w-corp.staticblitz.com/blitz.420f2654.js:181:2372) {
  errors: [
    {
      detail: undefined,
      id: '',
      location: null,
      notes: [],
      pluginName: '',
      text: 'The entry point "svelte-ux" cannot be marked as external'
    }
  ],
  warnings: []
}

image

Svelte UX is a large Svelte component/actions/etc library built using @sveltejs/package. My other package, LayerChart, has the same issue. Also just tested Melt-UI, and it same the same issue too

Expected behavior

Able to view bundle size for a @sveltejs/package

Minimal reproduction URL

https://pkg-size.dev/svelte-ux

Version

N/A

Node.js version

N/A

Package manager

npm

Operating system

macOS

Contributions