mirror of
https://github.com/jakejarvis/get-canonical-url.git
synced 2025-04-26 01:55:22 -04:00
don't resolve node_modules in non-browser builds
This commit is contained in:
parent
0a7a95b30c
commit
b27a37defd
@ -41,6 +41,13 @@ export default [
|
||||
],
|
||||
plugins: [
|
||||
del({ targets: "dist/*" }),
|
||||
eslint(),
|
||||
resolve(),
|
||||
babel({
|
||||
babelHelpers: "bundled",
|
||||
presets: [["@babel/preset-env"]],
|
||||
exclude: ["node_modules/**"],
|
||||
}),
|
||||
copy({
|
||||
// clearly this isn't really typescript, so we need to manually copy the type definition file
|
||||
targets: [
|
||||
@ -51,13 +58,6 @@ export default [
|
||||
},
|
||||
],
|
||||
}),
|
||||
resolve(),
|
||||
eslint(),
|
||||
babel({
|
||||
babelHelpers: "bundled",
|
||||
presets: [["@babel/preset-env"]],
|
||||
exclude: ["node_modules/**"],
|
||||
}),
|
||||
filesize(),
|
||||
],
|
||||
},
|
||||
@ -80,8 +80,8 @@ export default [
|
||||
banner: banner,
|
||||
},
|
||||
],
|
||||
external: ["normalize-url"],
|
||||
plugins: [
|
||||
resolve(),
|
||||
babel({
|
||||
babelHelpers: "bundled",
|
||||
exclude: ["node_modules/**"],
|
||||
|
Loading…
x
Reference in New Issue
Block a user