Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
lukastaegert committed Aug 26, 2022
1 parent 7852afe commit 5f65171
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 2 deletions.
9 changes: 9 additions & 0 deletions test/cli/node_modules/rollup-plugin-esm-test/index.mjs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions test/cli/node_modules/rollup-plugin-esm-test/package.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion test/cli/samples/import-esm-package/_config.js
@@ -1,4 +1,5 @@
module.exports = {
description: 'allows to import ESM dependencies from transpiled config files',
command: "rollup --config --configPlugin '{transform: c => c}'"
skipIfWindows: true,
command: "rollup --config --configPlugin '{transform:c => c}'"
};
7 changes: 6 additions & 1 deletion test/cli/samples/plugin/advanced-esm/_config.js
@@ -1,4 +1,9 @@
module.exports = {
description: 'load an ESM-only rollup plugin from node_modules as well as CJS plugins',
command: `rollup -c -p node-resolve,commonjs,esm-test -p "terser={mangle: false, output: {beautify: true, indent_level: 2}}"`
skipIfWindows: true,

// The NodeJS resolution rules for ESM modules are more restrictive than CJS.
// Must copy the ESM plugin into the main node_modules in order to use and test it.

command: `rm -rf ../../../../../node_modules/rollup-plugin-esm-test && cp -rp ../../../node_modules_rename_me/rollup-plugin-esm-test ../../../../../node_modules/ && rollup -c -p node-resolve,commonjs,esm-test -p "terser={mangle: false, output: {beautify: true, indent_level: 2}}"`
};

0 comments on commit 5f65171

Please sign in to comment.