vite-plugin-esmodule instead scripts/vite-plugin-esm2cjs
This commit is contained in:
parent
d55caa06d5
commit
3c1424ac91
|
@ -2,5 +2,5 @@ import { execa } from 'execa'
|
|||
|
||||
(async () => {
|
||||
const { stdout } = await execa('echo', ['unicorns'])
|
||||
// console.log(stdout)
|
||||
console.log(stdout)
|
||||
})()
|
||||
|
|
|
@ -1,12 +1,12 @@
|
|||
import { builtinModules } from 'module'
|
||||
import { defineConfig } from 'vite'
|
||||
import esm2cjs from '../../scripts/vite-plugin-esm2cjs'
|
||||
import esmodule from 'vite-plugin-esmodule'
|
||||
import pkg from '../../package.json'
|
||||
|
||||
export default defineConfig({
|
||||
root: __dirname,
|
||||
plugins: [
|
||||
esm2cjs([
|
||||
esmodule([
|
||||
'execa',
|
||||
'node-fetch',
|
||||
]),
|
||||
|
|
Loading…
Reference in New Issue