ember-vite-hmr 0.4.0 → 0.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/lib/hmr.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  export declare function hmr(): {
2
2
  name: string;
3
3
  enforce: string;
4
- transform(source: any, id: any): any;
4
+ transform(source: any, id: any): Promise<any>;
5
5
  };
package/dist/lib/hmr.js CHANGED
@@ -9,7 +9,7 @@ function hmr() {
9
9
  return {
10
10
  name: 'hmr-plugin',
11
11
  enforce: 'post',
12
- transform(source, id) {
12
+ async transform(source, id) {
13
13
  const resourcePath = id.replace(/\\/g, '/').split('?')[0];
14
14
  const supportedPaths = ['routers', 'controllers', 'routes'];
15
15
  const supportedFileNames = [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ember-vite-hmr",
3
- "version": "0.4.0",
3
+ "version": "0.5.0",
4
4
  "keywords": [
5
5
  "ember-addon"
6
6
  ],