Skip to content

Basic import does not work #7

Description

@TLescoatTFX

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions