Skip to content

Commit

Permalink
Try modified test
Browse files Browse the repository at this point in the history
  • Loading branch information
lukastaegert committed Aug 11, 2022
1 parent dcb720a commit 4ab4a86
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions test/chunking-form/samples/preserve-modules-root/_config.js
Expand Up @@ -2,11 +2,20 @@ const commonjs = require('@rollup/plugin-commonjs');
const resolve = require('@rollup/plugin-node-resolve').default;

module.exports = {
solo: true,
description: 'confirm preserveModulesRoot restructures src appropriately',
expectedWarnings: ['MIXED_EXPORTS'],
options: {
input: ['src/under-build.js', 'src/below/module.js'],
plugins: [
{
name: 'convert-slashes',
// This simulates converted slashes as used by e.g. Vite
async resolveId(source, importer, options) {
const resolved = await this.resolve(source, importer, { ...options, skipSelf: true });
return { ...resolved, id: resolved.id.replace(/\\/g, '/') };
}
},
resolve({
moduleDirectories: ['custom_modules']
}),
Expand Down

0 comments on commit 4ab4a86

Please sign in to comment.