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

Basic import does not work #7

Open
TLescoatTFX opened this issue Oct 23, 2023 · 0 comments
Open

Basic import does not work #7

TLescoatTFX opened this issue Oct 23, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@TLescoatTFX
Copy link

TLescoatTFX commented Oct 23, 2023

Here is a part of rollup.config.js:

import inlineCode from 'rollup-plugin-inline-code'
console.log(inlineCode);
console.log(inlineCode());

Actual result:

> npx rollup -c rollup.config.js --bundleConfigAsCjs

{ default: [Function (anonymous)] }
[!] TypeError: inlineCode is not a function

Expected result:

> npx rollup -c rollup.config.js --bundleConfigAsCjs

[Function (anonymous)]
{
  name: 'rollup-plugin-inline-code',
  resolveId: [Function: resolveId],
  transform: [Function: transform]
}

I can get the expected output using inlineCode.default, but that is clearly not the way it is supposed to work.

@TLescoatTFX TLescoatTFX added the bug Something isn't working label Oct 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant