Skip to content

Commit

Permalink
fix: pull CDN lodash from gh instead of npm so ti supports es6 imports
Browse files Browse the repository at this point in the history
  • Loading branch information
juanjoDiaz committed Aug 22, 2022
1 parent bb228bc commit 3e28e55
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion build.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ const replaceDependenciesByJsdelivr = {

const dependencies = {
'@streamparser/json': 'https://cdn.jsdelivr.net/npm/@streamparser/[email protected]',
'lodash.get': 'https://cdn.jsdelivr.net/npm/lodash[email protected]/index.js'
'lodash.get': '//cdn.jsdelivr.net/gh/lodash/lodash@master/get.js'
};

build.onResolve({ namespace: 'file', filter: new RegExp(`(?:${Object.keys(dependencies).join('|')})`) }, (args) => {
Expand Down
2 changes: 1 addition & 1 deletion dist/cdn/plainjs/BaseParser.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// packages/plainjs/src/BaseParser.js
import lodashGet from "https://cdn.jsdelivr.net/npm/lodash[email protected]/index.js";
import lodashGet from "//cdn.jsdelivr.net/gh/lodash/lodash@master/get.js";
import defaultFormatter from "../formatters/default.js";
import numberFormatterCtor from "../formatters/number.js";
import stringFormatterCtor from "../formatters/string.js";
Expand Down
2 changes: 1 addition & 1 deletion dist/cdn/transforms/unwind.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// packages/transforms/src/unwind.js
import lodashGet from "https://cdn.jsdelivr.net/npm/lodash[email protected]/index.js";
import lodashGet from "//cdn.jsdelivr.net/gh/lodash/lodash@master/get.js";
import { setProp, unsetProp, flattenReducer } from "./utils.js";
function getUnwindablePaths(obj, currentPath) {
return Object.keys(obj).reduce((unwindablePaths, key) => {
Expand Down

0 comments on commit 3e28e55

Please sign in to comment.