Skip to content

Commit

Permalink
Merge pull request #53 from shgysk8zer0/bug/caching
Browse files Browse the repository at this point in the history
Fix caching bug
  • Loading branch information
shgysk8zer0 authored Oct 31, 2023
2 parents 5ac463a + fd13249 commit 599ad86
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 4 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

## [v1.2.3] - 2023-10-31

### Fixed
- Caching in `load()` is for content, not URLs... Don't convert to `URL`s

## [v1.2.2] - 2023-10-05

### Changed
Expand Down
2 changes: 1 addition & 1 deletion import.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export function rollupImport(importMaps = []) {
name: '@shgysk8zer0/rollup-import',
async load(path) {
if (cached.has(path)) {
return new URL(cached.get(path));
return cached.get(path);
} else {
switch(new URL(path).protocol) {
case 'file:':
Expand Down
4 changes: 2 additions & 2 deletions 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
@@ -1,6 +1,6 @@
{
"name": "@shgysk8zer0/rollup-import",
"version": "1.2.2",
"version": "1.2.3",
"description": "A RollUp plugin for importing modules from URLs, paths, and bare specifiers using import maps.",
"type": "module",
"engines": {
Expand Down

0 comments on commit 599ad86

Please sign in to comment.