-
Notifications
You must be signed in to change notification settings - Fork 108
Closed
Description
上面的代码会被编译成:
可以看到,import 是生效的,require 的直接被编译成了 ""
附上代码:
// examples/dead-simple/index.ts
import { foo } from './foo';
import './foo/foo';
/**
* abcd
*/
console.log(foo);
const data = require('./example.module.less')
console.log('data', data);
import importedData from './example.module.less';
console.log('importedData', importedData);
// examples/dead-simple/example.module.less
.debug_watch_node {
height: 22px;
line-height: 22px;
display: flex;
flex-direction: column;
position: relative;
cursor: pointer;
user-select: none;
}
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels

