Skip to content

Commit f419c44

Browse files
fixed: cjs bundle
1 parent 175e6cf commit f419c44

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
# Compiler Changes
22

3+
### v4.4.1
4+
- Fix bundle the esmodules directly into the cjs bundle
5+
36
### v4.4.0
47
- Add allow the use of attributes on slot tags
58

build/rollup.node.config.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,18 @@
1+
import commonjs from 'rollup-plugin-commonjs'
12
import defaultConfig from './rollup.config'
3+
import nodeResolve from 'rollup-plugin-node-resolve'
24

35
export default {
46
...defaultConfig,
7+
plugins: [
8+
nodeResolve({
9+
modulesOnly: true
10+
}),
11+
commonjs()
12+
],
513
output: [{
614
file: './dist/index.js',
15+
name: 'compiler',
716
format: 'cjs',
817
...defaultConfig.output
918
}, {

0 commit comments

Comments
 (0)