Skip to content

Commit

Permalink
Make file extension resolve rule global instead of part of alias def.
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Dodge committed Mar 19, 2021
1 parent 6bb4b11 commit 85ed030
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 8 deletions.
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,16 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).

## [4.0.3] - 2021-03-19

### Fixed
- Fixed bug preventing imports from non-aliased paths (#80)

## [4.0.2] - 2021-03-05

### Changed
- Fix typos in README

## [4.0.1] - 2021-02-26

### Changed
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"description": "Quickly generate redistributable components with Rollup",
"author": "Michael Dodge",
"license": "ISC",
"version": "4.0.2",
"version": "4.0.3",
"bin": {
"sfc-init": "./sfc-init.js"
},
Expand Down
6 changes: 3 additions & 3 deletions templates/library/build/rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@ const baseConfig = {
replacement: `${path.resolve(projectRoot, 'src')}`,
},
],
customResolver: resolve({
extensions: ['.js', '.jsx', '.ts', '.tsx', '.vue'],
}),
}),
resolve({
extensions: ['.js', '.jsx', '.ts', '.tsx', '.vue'],
}),
],
replace: {
Expand Down
6 changes: 3 additions & 3 deletions templates/single/build/rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@ const baseConfig = {
replacement: `${path.resolve(projectRoot, 'src')}`,
},
],
customResolver: resolve({
extensions: ['.js', '.jsx', '.ts', '.tsx', '.vue'],
}),
}),
resolve({
extensions: ['.js', '.jsx', '.ts', '.tsx', '.vue'],
}),
],
replace: {
Expand Down

0 comments on commit 85ed030

Please sign in to comment.