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

ES import in webpack project does not work out of box #105

Open
blikblum opened this issue Nov 24, 2019 · 0 comments
Open

ES import in webpack project does not work out of box #105

blikblum opened this issue Nov 24, 2019 · 0 comments

Comments

@blikblum
Copy link

Resources:
Before submitting an issue, please consult our docs. [x] Done

Stencil version: (run npm list @stencil/core from a terminal/cmd prompt and paste output below):

@stencil/router: 1.0.1

I'm submitting a ... (check one with "x")
[x] bug report / incomplete documentation
[ ] feature request
[ ] support request => Please do not submit support requests here, use one of these channels: https://forum.ionicframework.com/ or https://stencil-worldwide.slack.com

Current behavior:
When using @stencil/router in a webpack project is not enough to add import to load the components

import '@stencil/router'

Expected behavior:

import '@stencil/router' in a webpack project should load the components or documentation should be provided how to use with webpack

Other information:

The below code works:

import { defineCustomElements } from '@stencil/router/dist/esm/loader.mjs'
defineCustomElements()

At least some kind of documentation should be provided in this project wiki or https://stenciljs.com/docs/module-bundling or https://stenciljs.com/docs/distribution

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