-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2fe01c1
commit c9a6543
Showing
8 changed files
with
1,819 additions
and
4,224 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
const { browserslist: defaultBrowserslist } = require('./package.json'); | ||
|
||
const modernBrowserslist = defaultBrowserslist.filter( | ||
(browser) => browser !== 'ie 11' | ||
); | ||
|
||
const sharedPlugins = [ | ||
'@babel/plugin-syntax-dynamic-import', | ||
[ | ||
'@babel/plugin-transform-runtime', | ||
{ | ||
useESModules: true | ||
} | ||
] | ||
]; | ||
|
||
module.exports = { | ||
exclude: [ | ||
'node_modules/@babel/**', | ||
'node_modules/core-js/**', | ||
'node_modules/@webcomponents/webcomponentsjs/**' | ||
], | ||
env: { | ||
modern: { | ||
// lit-element supports the last two versions of modern browsers, so we don't need to polyfill | ||
exclude: ['node_modules/lit-element/**', 'node_modules/lit-html/**'], | ||
presets: [ | ||
[ | ||
'@babel/preset-env', | ||
{ | ||
targets: modernBrowserslist.join(', '), | ||
useBuiltIns: 'usage', | ||
corejs: 3 | ||
} | ||
] | ||
], | ||
plugins: sharedPlugins | ||
}, | ||
legacy: { | ||
presets: [ | ||
[ | ||
'@babel/preset-env', | ||
{ | ||
targets: defaultBrowserslist.join(', '), | ||
useBuiltIns: 'usage', | ||
corejs: 3 | ||
} | ||
] | ||
], | ||
plugins: sharedPlugins | ||
} | ||
} | ||
}; |
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 |
---|---|---|
|
@@ -58,19 +58,19 @@ <h2>auro-hyperlink: nav link</h2> | |
</main> | ||
<div id="assets"> | ||
<link rel="stylesheet" | ||
href="https://unpkg.com/@alaskaairux/orion-design-tokens@2.11.0/dist/tokens/CSSCustomProperties.css" /> | ||
href="https://unpkg.com/@alaskaairux/design-tokens@latest/dist/tokens/CSSCustomProperties.css" /> | ||
<link rel="stylesheet" | ||
href="https://unpkg.com/@alaskaairux/[email protected]/dist/bundled/essentials.css" /> | ||
href="https://unpkg.com/@alaskaairux/webcorestylesheets@latest/dist/bundled/essentials.css" /> | ||
|
||
|
||
<!-- for initial build and test only --> | ||
<script src="./polyfills.js"></script> | ||
<script src="./auro-hyperlink__bundled.js"></script> | ||
<script src="/dist/auro-hyperlink__bundled.js" type="module"></script> | ||
<script src="/dist/auro-hyperlink__bundled.es5.js" nomodule></script> | ||
|
||
<!-- once first build has been released, update with the links below --> | ||
<!-- Be sure to update the :version number --> | ||
<!-- <script src="https://unpkg.com/@alaskaairux/auro-hyperlink@1.0.0/dist/polyfills.js"></script> | ||
<script src="https://unpkg.com/@alaskaairux/auro-hyperlink@1.0.0/dist/auro-hyperlink__bundled.js"></script> --> | ||
<!-- Be sure to update the @latest number --> | ||
<!-- <script src="https://unpkg.com/@alaskaairux/auro-hyperlink@latest/dist/auro-hyperlink__bundled.es5.js" nomodule></script> | ||
<script src="https://unpkg.com/@alaskaairux/auro-hyperlink@latest/dist/auro-hyperlink__bundled.js" type="module"></script> --> | ||
</div> | ||
</body> | ||
|
||
|
Oops, something went wrong.