-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
BREAKING CHANGE: This update will update how bundled resources are used, removing support for pollyfill.js
- Loading branch information
1 parent
b4a2cae
commit 3c4ff2e
Showing
8 changed files
with
840 additions
and
3,476 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 |
---|---|---|
|
@@ -51,7 +51,7 @@ | |
} | ||
|
||
var auroButton = [ | ||
'<auro-button cssClass="testClass">Hello World</auro-button>' | ||
'<auro-button>Hello World</auro-button>' | ||
] | ||
</script> | ||
</head> | ||
|
@@ -81,19 +81,19 @@ <h3>auro-button: default</h3> | |
</main> | ||
<div id="assets"> | ||
<link rel="stylesheet" | ||
href="https://unpkg.com/@alaskaairux/orion-design-tokens@2.12.1/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-button__bundled.js"></script> | ||
<script src="/dist/auro-button__bundled.js" type="module"></script> | ||
<script src="/dist/auro-button__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-button@:version/dist/polyfills.js"></script> | ||
<script src="https://unpkg.com/@alaskaairux/auro-button@:version/dist/auro-button__bundled.js"></script> --> | ||
<!-- Be sure to update the @latest number --> | ||
<!-- <script src="https://unpkg.com/@alaskaairux/auro-button@latest/dist/auro-button__bundled.es5.js" nomodule></script> | ||
<script src="https://unpkg.com/@alaskaairux/auro-button@latest/dist/auro-button__bundled.js" type="module"></script> --> | ||
</div> | ||
</body> | ||
|
||
|
Oops, something went wrong.