Skip to content

Commit 96eed02

Browse files
committed
refactor(core): remove .ts extensions in imports
1 parent 814f76e commit 96eed02

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

build/webpack.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ ${ pkg.name } v${ pkg.version }
163163
mainFields: ['browser', 'main', 'module'],
164164
alias: {
165165

166-
'./createSFCModule.ts': `./createVue${ vueVersion }SFCModule.ts`,
166+
'./createSFCModule': `./createVue${ vueVersion }SFCModule`,
167167

168168
// dedupe (see DuplicatePackageCheckerPlugin result)
169169
'bn.js': require.resolve('bn.js'),

src/index.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
import { posix as Path } from 'path'
22

3-
import { createJSModule } from './tools.ts'
4-
import { createSFCModule } from './createSFCModule.ts'
3+
import { createJSModule } from './tools'
4+
import { createSFCModule } from './createSFCModule'
55

6-
import { ModuleExport, ModuleHandler, PathHandlers, Options } from './types.ts'
6+
import { ModuleExport, ModuleHandler, PathHandlers, Options } from './types'
77

88
/**
99
* the version of the library (process.env.VERSION is set by webpack, at compile-time)

0 commit comments

Comments
 (0)