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

[rfc]: Add all componets to folder lib #35

Closed
wants to merge 1 commit into from

Conversation

wootsbot
Copy link
Member

  • Copy all components to folder lib
  • support server-side rendering.
+    "build": "yarn clean && yarn build:bundle && yarn build:lib",
+    "build:bundle": "rollup --config rollup.config.js",
+    "clean": "rimraf build && rimraf lib",
+   "build:lib": "cross-env node ./scripts/copy-files.js ./src/ ./lib/",

close: #34

@wootsbot wootsbot self-assigned this Nov 13, 2020
@wootsbot
Copy link
Member Author

@gleuch I think that would be enough, but I would like to know if the export needs to be modified.

package.json

    "svelte": "build/index.js",
    "main": "build/index.js",
-  "module": "build/index.mjs",
+  "module": "lib/index.js",

@niklasgrewe
Copy link

@wootsbot any updates on this? I have the same problems with the new sveltekit too.

@wootsbot
Copy link
Member Author

wootsbot commented Mar 4, 2021

sveltekit

I don't know if this PR covers the need, if it is like that to merge the PR or if you have more information than we need, it would help me a lot.

@wootsbot wootsbot closed this Jun 9, 2022
@wootsbot wootsbot deleted the copy-all-components-to-lib branch October 31, 2023 07:11
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

Successfully merging this pull request may close these issues.

Unable to use with Sapper
2 participants