Skip to content
This repository was archived by the owner on Aug 7, 2023. It is now read-only.
This repository was archived by the owner on Aug 7, 2023. It is now read-only.

[Bug]: when transform esm to cjs, The require function still exists #5

@targeral

Description

@targeral

Version

v0.2.0

Details

// config
export default defineConfig({
  format: 'esm',
});

input:

// ./index.js
const utils = require('./utils');

output:

var import_utils = require("./utils");

Reproduce link

null

Reproduce Steps

  1. config format=esm
  2. run build

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions