sveltejs / svelte-loader

Webpack loader for svelte components.
MIT License
594 stars 73 forks source link

NPM LINK svelte bundle returns empty object once imported in some-project #212

Closed projektorius96 closed 1 year ago

projektorius96 commented 1 year ago

I try to use Svelte for some-project

I assume I do know how to use this plugin for webpack, as well a webpack itself, although npm link does work (e.g. identifies globally exposed variables), importing before exported .svelte files returns empty object in the some-project project .

I have followed this tutorial trying to achieve same but on Webpack rather than Rollup + used NPM documentation including package.json file set up, etc.

Any chance this is something to do with svelte-loader, if so some solution-like pseudo-code would be appreciated . Thanks !