Skip to content

Commit

Permalink
Tests: browser field
Browse files Browse the repository at this point in the history
  • Loading branch information
nathan committed Mar 6, 2019
1 parent 5024807 commit 5ca83bc
Show file tree
Hide file tree
Showing 16 changed files with 1,268 additions and 40 deletions.
1 change: 1 addition & 0 deletions .gitignore
Expand Up @@ -8,3 +8,4 @@ node_modules
.cargo
!pax/examples/browser/**/node_modules
!pax/fixtures/**/node_modules
pax/fixtures/tools/node_modules
1 change: 1 addition & 0 deletions pax/fixtures/browser/alternate-main-bare/main-browser.js
@@ -0,0 +1 @@
console.log('success')
1 change: 1 addition & 0 deletions pax/fixtures/browser/alternate-main-bare/main-default.js
@@ -0,0 +1 @@
console.log('failure')
4 changes: 4 additions & 0 deletions pax/fixtures/browser/alternate-main-bare/package.json
@@ -0,0 +1,4 @@
{
"main": "main-default.js",
"browser": "main-browser.js"
}
1 change: 1 addition & 0 deletions pax/fixtures/browser/alternate-main-rel/main-browser.js
@@ -0,0 +1 @@
console.log('success')
1 change: 1 addition & 0 deletions pax/fixtures/browser/alternate-main-rel/main-default.js
@@ -0,0 +1 @@
console.log('failure')
4 changes: 4 additions & 0 deletions pax/fixtures/browser/alternate-main-rel/package.json
@@ -0,0 +1,4 @@
{
"main": "main-default.js",
"browser": "./main-browser.js"
}
@@ -0,0 +1 @@
console.log('success')
@@ -0,0 +1 @@
console.log('failure')
4 changes: 4 additions & 0 deletions pax/fixtures/browser/alternate-main-subdir-bare/package.json
@@ -0,0 +1,4 @@
{
"main": "default/main.js",
"browser": "browser/main.js"
}
@@ -0,0 +1 @@
console.log('success')
@@ -0,0 +1 @@
console.log('failure')
4 changes: 4 additions & 0 deletions pax/fixtures/browser/alternate-main-subdir-rel/package.json
@@ -0,0 +1,4 @@
{
"main": "default/main.js",
"browser": "./browser/main.js"
}

0 comments on commit 5ca83bc

Please sign in to comment.