We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
https://repl.it/repls/PhonyUsefulNanotechnology#output/bundle.js
Have a file like
import {LitElement, html} from "lit-element" import { useState } from "lit-element-state-decoupler"; import {useOnce} from "lit-element-effect"; export class Element extends LitElement { render() { const {getState, publish} = useState(this, false) useOnce(this, () => publish(true)) return html`<div>Called: ${getState()}<div>` } }
The imports are resolved correctly. In the bundle that would create a result:
class Element extends LitElement { render() { const {getState, publish} = index.useState(this, false); index$1.useOnce(this, () => publish(true)); return html`<div>Called: ${getState()}<div>` } }
(Note the index$1 on useOnce)
index$1
useOnce
useOnce is retrieved from index, which obviously fails:
index
class Element extends LitElement { render() { const {getState, publish} = index.useState(this, false); index.useOnce(this, () => publish(true)); return html`<div>Called: ${getState()}<div>` } }
Use version 12.0.0 of @rollup/plugin-commonjs instead of v13.0.0
The text was updated successfully, but these errors were encountered:
Exporting index again after opening issue in rollup plugin
41b57dc
rollup/plugins#454
I've got same thing with another library, also with index near this line:
console.log(1, lib) var index = /*@__PURE__*/unwrapExports(lib); console.log(2, index)
I believe exports are unwrapped incorrectly, here is result:
From source code function checks for default export and uses it, however object can have other keys which will be removed.
default
Bundling results in an application error shown above. Workaround is to use 12.0.0.
Will be probably fixed with #465
Sorry, something went wrong.
I started #481 to move all interop issues including this one forward.
I can confirm that #501 solves this issue.
Successfully merging a pull request may close this issue.
How Do We Reproduce?
https://repl.it/repls/PhonyUsefulNanotechnology#output/bundle.js
Have a file like
Expected Behavior
The imports are resolved correctly. In the bundle that would create a result:
(Note the
index$1
onuseOnce
)Actual Behavior
useOnce
is retrieved fromindex
, which obviously fails:Workaround
Use version 12.0.0 of @rollup/plugin-commonjs instead of v13.0.0
The text was updated successfully, but these errors were encountered: