Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
thgh committed Oct 19, 2022
1 parent af712d4 commit bfddf7d
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 10 deletions.
2 changes: 1 addition & 1 deletion rollup.config.mjs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import buble from '@rollup/plugin-buble'

export default {
input: 'src/index.js',
input: 'src/index.mjs',
output: [
{
file: 'dist/index.cjs',
Expand Down
File renamed without changes.
9 changes: 9 additions & 0 deletions test/nested/output/bundle.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
body {
background-color: blue;
}
body {
background-color: red;
}
body {
background-color: green;
}
3 changes: 3 additions & 0 deletions test/nested/output/bundle.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
console.log('This should happen first');

console.log('This should happen second');
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
import css from '../../src/index.js'
import css from '../../src/index.mjs'

export default {
input: 'input.js',
output: {
file: 'output/bundle.js',
format: 'esm'
},
plugins: [
css({ output: 'bundle.css' })
]
}
plugins: [css({ output: 'bundle.css' })]
}
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
import css from '../../src/index.js'
import css from '../../src/index.mjs'

export default {
input: 'input.js',
output: {
file: 'output/output.js',
format: 'esm'
},
plugins: [
css({ output: 'output.css' })
]
plugins: [css({ output: 'output.css' })]
}

0 comments on commit bfddf7d

Please sign in to comment.