Skip to content
This repository has been archived by the owner on Feb 23, 2021. It is now read-only.

tylerbrostrom/parcel-issue-min-repo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

parcel-issue-min-repo

This repo demonstrates an issue with Parcel bundler where Babel doesn’t compile a third-party module, micromodal (which unfortunately exports ES2015+ code).

Expection

Because the module meets the following criteria:

  • module directory is symlinked into node_modules (by way of Yarn Workspaces)
  • module package.json has a source field set

It is expected that the module would be compiled by Babel.

As of Parcel 1.12.3, it does not.

This contrasts with the expectations set in the Parcel Docs: Transforming Third-Party Modules.

Example Structure

This repo has two Yarn Workspace packages:

  • the main app @test/front-end (./front-end/)
  • the wrapped dependency @test/uncompiled-dependencies (./uncompiled-dependencies/)

@test/front-end depends on MicroModal, which is imported/destructured from @test/uncompiled-dependencies.

In either package, browserslist and babel are set in package.json

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published