generated from modernweb-dev/package-template
-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from modernweb-dev/init
Move package from `modernweb-dev/web` monorepo
- Loading branch information
Showing
8 changed files
with
4,314 additions
and
2 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
node_modules | ||
dist |
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,30 @@ | ||
# @web/dev-server-polyfill | ||
|
||
## 1.0.4 | ||
|
||
### Patch Changes | ||
|
||
- Updated dependencies [c185cbaa] | ||
- @web/polyfills-loader@2.2.0 | ||
- @web/dev-server@0.4.0 | ||
|
||
## 1.0.3 | ||
|
||
### Patch Changes | ||
|
||
- 76a2f86f: update entrypoints | ||
- 3aa8bb85: fix: use the correct package name in the comment markers | ||
- Updated dependencies [76a2f86f] | ||
- @web/polyfills-loader@2.1.5 | ||
|
||
## 1.0.2 | ||
|
||
### Patch Changes | ||
|
||
- fe56dec6: fix comment markers | ||
|
||
## 1.0.1 | ||
|
||
### Patch Changes | ||
|
||
- 90c8dcdc: feat: dev-server-polyfill |
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 |
---|---|---|
@@ -1,2 +1,45 @@ | ||
# package-template | ||
A template for Modern Web packages | ||
# Dev server polyfill | ||
|
||
Plugin to load polyfills during development. Uses [`@web/polyfills-loader`](https://modern-web.dev/docs/building/polyfills-loader/) internally. | ||
|
||
## Usage | ||
|
||
`web-dev-server.config.js`: | ||
|
||
```js | ||
import { polyfill } from '@web/dev-server-polyfill'; | ||
|
||
export default { | ||
plugins: [ | ||
polyfill({ | ||
scopedCustomElementRegistry: true, | ||
}), | ||
], | ||
}; | ||
``` | ||
|
||
You can find the supported polyfills [here](https://modern-web.dev/docs/building/polyfills-loader/#polyfills). | ||
|
||
You can also provide custom polyfills: | ||
|
||
`web-dev-server.config.js`: | ||
|
||
```js | ||
import { polyfill } from '@web/dev-server-polyfill'; | ||
|
||
export default { | ||
plugins: [ | ||
polyfill({ | ||
custom: [ | ||
{ | ||
name: 'my-feature-polyfill', | ||
path: 'path/to/my/polyfill.js', | ||
test: "!('myFeature' in window)", | ||
}, | ||
], | ||
}), | ||
], | ||
}; | ||
``` | ||
|
||
You can find the configuration options for providing custom polyfills [here](https://modern-web.dev/docs/building/polyfills-loader/#custom-polyfills). |
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,2 @@ | ||
// this file is autogenerated with the generate-mjs-dts-entrypoints script | ||
export * from './dist/index.js'; |
Oops, something went wrong.