1
mirror of https://github.com/jakejarvis/get-canonical-url.git synced 2025-04-26 12:18:27 -04:00

don't resolve node_modules in non-browser builds

This commit is contained in:
Jake Jarvis 2021-09-29 21:58:40 -04:00
parent 0a7a95b30c
commit b27a37defd
Signed by: jake
GPG Key ID: 2B0C9CF251E69A39

View File

@ -41,6 +41,13 @@ export default [
], ],
plugins: [ plugins: [
del({ targets: "dist/*" }), del({ targets: "dist/*" }),
eslint(),
resolve(),
babel({
babelHelpers: "bundled",
presets: [["@babel/preset-env"]],
exclude: ["node_modules/**"],
}),
copy({ copy({
// clearly this isn't really typescript, so we need to manually copy the type definition file // clearly this isn't really typescript, so we need to manually copy the type definition file
targets: [ targets: [
@ -51,13 +58,6 @@ export default [
}, },
], ],
}), }),
resolve(),
eslint(),
babel({
babelHelpers: "bundled",
presets: [["@babel/preset-env"]],
exclude: ["node_modules/**"],
}),
filesize(), filesize(),
], ],
}, },
@ -80,8 +80,8 @@ export default [
banner: banner, banner: banner,
}, },
], ],
external: ["normalize-url"],
plugins: [ plugins: [
resolve(),
babel({ babel({
babelHelpers: "bundled", babelHelpers: "bundled",
exclude: ["node_modules/**"], exclude: ["node_modules/**"],