Skip to content

demonstrating bugged imports in files from symlinked directories

Notifications You must be signed in to change notification settings

dustin-archive/symlink-bug

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

symlink-bug

demonstrating bugged imports in files from symlinked directories

Workaround

Enable the work around by uncommenting mainFields: ['module'] in rollup.config.js

import resolve from 'rollup-plugin-node-resolve'

// 1. Workaround to allow imports in symlinked files
export default {
  plugins: [
    resolve({
      // mainFields: ['module'] // 1
    })
  ],
  output: {
    name: 'app',
    format: 'iife'
  }
}

About

demonstrating bugged imports in files from symlinked directories

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published