From 85ed030fe72c5cd7c8283aab37070d3d2b5c37d0 Mon Sep 17 00:00:00 2001 From: Michael Dodge Date: Fri, 19 Mar 2021 09:41:17 -0600 Subject: [PATCH] Make file extension resolve rule global instead of part of alias def. --- CHANGELOG.md | 10 ++++++++++ package-lock.json | 2 +- package.json | 2 +- templates/library/build/rollup.config.js | 6 +++--- templates/single/build/rollup.config.js | 6 +++--- 5 files changed, 18 insertions(+), 8 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 8234cd3..f760ff4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/package-lock.json b/package-lock.json index 8a491f1..badb92a 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "vue-sfc-rollup", - "version": "4.0.2", + "version": "4.0.3", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index 32f2314..cf0986b 100644 --- a/package.json +++ b/package.json @@ -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" }, diff --git a/templates/library/build/rollup.config.js b/templates/library/build/rollup.config.js index fe28392..a266b72 100644 --- a/templates/library/build/rollup.config.js +++ b/templates/library/build/rollup.config.js @@ -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: { diff --git a/templates/single/build/rollup.config.js b/templates/single/build/rollup.config.js index fe28392..a266b72 100644 --- a/templates/single/build/rollup.config.js +++ b/templates/single/build/rollup.config.js @@ -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: {