From 9b34ac3012dfe09e8b4ccaa3ba735db8b5191fe7 Mon Sep 17 00:00:00 2001 From: Yanis Rigaudeau Date: Thu, 29 Sep 2022 11:18:38 +0200 Subject: [PATCH] commonjs import --- www/package-lock.json | 1 + www/rollup.config.js | 7 +++++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/www/package-lock.json b/www/package-lock.json index a08f486..9432925 100644 --- a/www/package-lock.json +++ b/www/package-lock.json @@ -7,6 +7,7 @@ "": { "name": "www", "version": "1.0.0", + "license": "ISC", "dependencies": { "@threlte/core": "^4.3.2", "@threlte/extras": "^4.3.0", diff --git a/www/rollup.config.js b/www/rollup.config.js index 0a4681c..a00d404 100644 --- a/www/rollup.config.js +++ b/www/rollup.config.js @@ -60,10 +60,13 @@ export default { browser: true, dedupe: ['svelte'] }), - commonjs({include: 'node_modules/**'}), + commonjs(), typescript({ sourceMap: !production, - inlineSources: !production + inlineSources: !production, + compilerOptions: { + module: 'commonjs' + } }), // In dev mode, call `npm run start` once