ptech-preset 1.3.7 → 1.3.8
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/index.js +4 -4
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -435,9 +435,8 @@ function pluginCore(opts) {
|
|
|
435
435
|
const target = JSON.stringify(targetImport);
|
|
436
436
|
lines.push(`export * from ${target};`);
|
|
437
437
|
lines.push(`export { default } from ${target};`);
|
|
438
|
-
lines.push(
|
|
439
|
-
|
|
440
|
-
);
|
|
438
|
+
lines.push(`;(import.meta as any).webpackHot?.accept?.();`);
|
|
439
|
+
lines.push(`;(import.meta as any).hot?.accept?.();`);
|
|
441
440
|
lines.push(`// generated by plugin-mf-auto`);
|
|
442
441
|
fs3.writeFileSync(proxyFile, lines.join(os.EOL), "utf8");
|
|
443
442
|
const relFromRoot = path3.relative(root, proxyFile).replace(/\\/g, "/");
|
|
@@ -452,7 +451,8 @@ function pluginCore(opts) {
|
|
|
452
451
|
fs3.writeFileSync(
|
|
453
452
|
stylesFile,
|
|
454
453
|
`import ${JSON.stringify(cssImport)};
|
|
455
|
-
|
|
454
|
+
;(import.meta as any).webpackHot?.accept?.();
|
|
455
|
+
;(import.meta as any).hot?.accept?.();
|
|
456
456
|
// generated by plugin-mf-auto`,
|
|
457
457
|
"utf8"
|
|
458
458
|
);
|