Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
dazuaz committed Jun 9, 2021
1 parent dc56ebc commit dad7403
Show file tree
Hide file tree
Showing 6 changed files with 611 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .babelrc
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"@babel/preset-env",
{
"targets": {
"node": "10.13.0"
"node": "12.22.1"
}
}
]
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"description": "A webpack loader for responsive images",
"main": "lib/cjs.js",
"engines": {
"node": ">= 10.13.0"
"node": ">= 12.22.1"
},
"scripts": {
"build": "tsc && cp ./src/cjs.js ./lib",
Expand Down
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ export default function loader(this: LoaderContext<any>, content: string): void
images: [{path:${path},width:100,height:100}],
src: ${path},
toString: function(){return ${path}}
};`
}`
)
return
}
Expand Down
8 changes: 4 additions & 4 deletions test/cjs.test.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import src from "../lib"
import cjs from "../lib/cjs"
import src from '../lib'
import cjs from '../lib/cjs'

describe("CJS", () => {
it("should export loader", () => {
describe('CJS', () => {
it('should export loader', () => {
expect(cjs).toEqual(src)
})

Expand Down
Loading

0 comments on commit dad7403

Please sign in to comment.