-
Notifications
You must be signed in to change notification settings - Fork 916
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cjs auto-detection on by default (#1163)
- Loading branch information
1 parent
bed0968
commit 00feade
Showing
9 changed files
with
154 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
{ | ||
"private": true, | ||
"version": "1.0.1", | ||
"name": "@snowpack/test-auto-named-exports", | ||
"description": "Handle automatic named export detection for cjs packages", | ||
"scripts": { | ||
"testinstall": "snowpack" | ||
}, | ||
"snowpack": { | ||
"install": [ | ||
"cjs-named-export-pkg-02" | ||
] | ||
}, | ||
"dependencies": { | ||
"cjs-named-export-pkg-02": "file:./packages/cjs-named-export-pkg-02" | ||
}, | ||
"devDependencies": { | ||
"snowpack": "^2.12.1" | ||
} | ||
} |
5 changes: 5 additions & 0 deletions
5
test/esinstall/auto-named-exports/packages/cjs-named-export-pkg-02/entrypoint.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
exports.export1 = 1; | ||
exports.export2 = 'foo'; | ||
exports.export3 = function foo() {} | ||
exports.export4 = () => {} | ||
exports.export5 = null; |
5 changes: 5 additions & 0 deletions
5
test/esinstall/auto-named-exports/packages/cjs-named-export-pkg-02/package.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"name": "cjs-named-export-pkg-02", | ||
"version": "1.2.3", | ||
"main": "entrypoint.js" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
00feade
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs: