Skip to content
This repository has been archived by the owner on Mar 7, 2024. It is now read-only.

Commit

Permalink
fix: 修复 windows下编译报错 (#1091)
Browse files Browse the repository at this point in the history
  • Loading branch information
yesw6a committed Jun 16, 2020
1 parent d54847d commit 0b2caa8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/remax-plugin-devtools/index.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
const { slash } = require('@remax/shared');
const { default: InjectPlugin, ENTRY_ORDER } = require('webpack-inject-plugin');

module.exports = () => ({
Expand All @@ -24,7 +25,7 @@ module.exports = () => ({
]);

config.plugin('plugin-devtools-webpack-inject-plugin').use(InjectPlugin, [
() => `import '${require.resolve('@remax/react-devtools-core')}';`,
() => `import '${slash(require.resolve('@remax/react-devtools-core'))}';`,
{
entryName: 'app',
entryOrder: ENTRY_ORDER.First,
Expand Down
1 change: 1 addition & 0 deletions packages/remax-plugin-devtools/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
},
"dependencies": {
"@remax/react-devtools-core": "^4.7.0",
"@remax/shared": "2.5.0",
"webpack-inject-plugin": "^1.5.4"
}
}

1 comment on commit 0b2caa8

@vercel
Copy link

@vercel vercel bot commented on 0b2caa8 Jun 16, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.