vite-plugin-commonjs
Advanced tools
Changelog
0.6.1 (2022-12-10)
var
instead const
#17- const module = { exports: {} }; const exports = module.exports;
+ var module = { exports: {} }; var exports = module.exports;
Changelog
0.6.0 (2022-11-27)
0.6.x
const { foo } = require('foo')
↓
const { foo } = __CJS__import__0__.default || __CJS__import__0__
const bar = require('bar')
↓
import * as __CJS__import__0__ from '/bar'
const bar = __CJS__import__0__.default || __CJS__import__0__
0.5.x
const { foo } = require('foo')
↓
import { foo } from 'foo'
const bar = require('bar')
↓
import * as __CJS__import__0__ from '/bar'
const bar = __CJS__import__0__
Changelog
0.5.3 (2022-10-16)
src-output
-> __snapshots__
"type": "module"
"strict": true
Changelog
[2022-06-24] v0.5.2
options.onFiles
to options.dynamic.onFiles
Changelog
[2022-06-20] v0.5.1
options.dynamic
instead of options.depth
Changelog
[2022-06-16] v0.5.0
Changelog
[2022-05-13] v0.4.7
Changelog
[2022-05-12] v0.4.6
Changelog
[2022-05-21] v0.4.5