Skip to content

Commit

Permalink
Fix Windows tests
Browse files Browse the repository at this point in the history
  • Loading branch information
lukastaegert committed Jan 4, 2020
1 parent ae7e61c commit 61f837d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
Expand Up @@ -5,8 +5,7 @@ module.exports = {
plugins: [
{
transform(code, id) {
console.log(id);
if (id.endsWith('/dep1.js') || id.endsWith('/dep2.js')) {
if (id.endsWith('dep1.js') || id.endsWith('dep2.js')) {
return {
code,
syntheticNamedExports: true
Expand Down
Expand Up @@ -5,7 +5,7 @@ module.exports = {
plugins: [
{
resolveId(id) {
if (id === './dep1.js') {
if (id.endsWith('dep1.js')) {
return {
id,
syntheticNamedExports: true
Expand Down
4 changes: 2 additions & 2 deletions test/chunking-form/samples/synthetic-named-exports/_config.js
Expand Up @@ -5,13 +5,13 @@ module.exports = {
plugins: [
{
resolveId(id) {
if (id === './dep1.js') {
if (id.endsWith('dep1.js')) {
return id;
}
return null;
},
load(id) {
if (id === './dep1.js') {
if (id.endsWith('dep1.js')) {
return {
code: `
const d = {
Expand Down

0 comments on commit 61f837d

Please sign in to comment.