Skip to content

Commit

Permalink
refactor(preset): replace slash tool
Browse files Browse the repository at this point in the history
  • Loading branch information
PeachScript committed Mar 21, 2020
1 parent 9053e60 commit 1a44b4b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/preset-dumi/src/transformer/remark/externalDemo.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import fs from 'fs';
import { utils } from 'dumi';
import slash from 'slash2';
import path from 'path';
import visit from 'unist-util-visit';
import resolve from 'enhanced-resolve';
Expand Down Expand Up @@ -60,7 +60,7 @@ export default function externalDemo() {
const { src, ...inheritAttrs } = HTMLAttrParser(matches[2]);

if (src) {
let absPath = utils.winPath(
let absPath = slash(
resolve.create.sync({
extensions: ['.tsx', '.jsx'],
alias: ctx.umi?.config?.alias || {},
Expand Down

0 comments on commit 1a44b4b

Please sign in to comment.