Skip to content

Commit

Permalink
fix: #36 and dynamic import (#38)
Browse files Browse the repository at this point in the history
* fix: dynamic import

* fix: #36
  • Loading branch information
zhangHongEn authored Aug 6, 2024
1 parent 5fccb3c commit 54ad191
Show file tree
Hide file tree
Showing 7 changed files with 1,446 additions and 3,948 deletions.
4 changes: 2 additions & 2 deletions examples/vite/src/App.jsx
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import Mfapp01App from 'mfapp01/App';
import R from 'react';
import RD from 'react-dom';
import Mfapp01App from 'mfapp01/App';
import Remote2App from 'remote2/App';
import Button from 'remote3/button';
import { ref } from 'vue';

console.log('share vue', ref);
console.log('share React', R, RD);
console.log('share React', R, RD, import('remote3/button'), import('react'));

export default function () {
return (
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,8 @@
"@rollup/pluginutils": "^5.1.0",
"an-empty-js-file": "1.0.0",
"estree-walker": "^2",
"magic-string": "^0.30.10"
"magic-string": "^0.30.10",
"pathe": "^1.1.2"
},
"devDependencies": {
"husky": "^8.0.3",
Expand Down
Loading

0 comments on commit 54ad191

Please sign in to comment.