Skip to content
This repository has been 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

Open
targeral opened this issue Oct 25, 2022 · 0 comments
Open
Labels
bug Something isn't working

Comments

@targeral
Copy link
Member

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
@targeral targeral added the bug Something isn't working label Oct 25, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant