Skip to content

Commit

Permalink
Add test
Browse files Browse the repository at this point in the history
  • Loading branch information
lukastaegert committed Jul 6, 2022
1 parent 44836eb commit 61fa124
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 0 deletions.
24 changes: 24 additions & 0 deletions test/form/samples/runs-output-plugins-last/_config.js
@@ -0,0 +1,24 @@
module.exports = {
solo: true,
description: 'runs output plugins last',
options: {
plugins: [
{
name: 'input',
renderChunk(code) {
return `/* input */\n${code}\n/* input */`;
}
}
],
output: {
plugins: [
{
name: 'input',
renderChunk(code) {
return `/* output */\n${code}\n/* output */`;
}
}
]
}
}
};
7 changes: 7 additions & 0 deletions test/form/samples/runs-output-plugins-last/_expected.js
@@ -0,0 +1,7 @@
/* output */
/* input */
let foo = 'base';

export { foo };
/* input */
/* output */
1 change: 1 addition & 0 deletions test/form/samples/runs-output-plugins-last/main.js
@@ -0,0 +1 @@
export let foo = 'base';

0 comments on commit 61fa124

Please sign in to comment.