mirror of
https://github.com/kevin-DL/sapper.git
synced 2026-01-11 19:04:30 +00:00
success i think?
This commit is contained in:
1
config/rollup.js
Normal file
1
config/rollup.js
Normal file
@@ -0,0 +1 @@
|
|||||||
|
module.exports = require('../dist/rollup.js');
|
||||||
1
config/webpack.js
Normal file
1
config/webpack.js
Normal file
@@ -0,0 +1 @@
|
|||||||
|
module.exports = require('../dist/webpack.js');
|
||||||
@@ -1,3 +0,0 @@
|
|||||||
console.log(`please tell me windows isn't trying to run this file`);
|
|
||||||
|
|
||||||
module.exports = require('./dist/rollup.js');
|
|
||||||
@@ -70,7 +70,7 @@
|
|||||||
"scripts": {
|
"scripts": {
|
||||||
"cy:open": "cypress open",
|
"cy:open": "cypress open",
|
||||||
"test": "mocha --opts mocha.opts",
|
"test": "mocha --opts mocha.opts",
|
||||||
"pretest": "npm run build && echo \"seriously, wtf\" && ls . && ls dist",
|
"pretest": "npm run build",
|
||||||
"build": "rm -rf dist && rollup -c",
|
"build": "rm -rf dist && rollup -c",
|
||||||
"dev": "rollup -cw",
|
"dev": "rollup -cw",
|
||||||
"prepublishOnly": "npm test",
|
"prepublishOnly": "npm test",
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
import path from 'path';
|
|
||||||
import typescript from 'rollup-plugin-typescript';
|
import typescript from 'rollup-plugin-typescript';
|
||||||
import string from 'rollup-plugin-string';
|
import string from 'rollup-plugin-string';
|
||||||
import json from 'rollup-plugin-json';
|
import json from 'rollup-plugin-json';
|
||||||
@@ -6,8 +5,6 @@ import resolve from 'rollup-plugin-node-resolve';
|
|||||||
import commonjs from 'rollup-plugin-commonjs';
|
import commonjs from 'rollup-plugin-commonjs';
|
||||||
import pkg from './package.json';
|
import pkg from './package.json';
|
||||||
|
|
||||||
console.log('WE ARE INSIDE THE ROLLUP CONFIG');
|
|
||||||
|
|
||||||
const external = [].concat(
|
const external = [].concat(
|
||||||
Object.keys(pkg.dependencies),
|
Object.keys(pkg.dependencies),
|
||||||
Object.keys(process.binding('natives')),
|
Object.keys(process.binding('natives')),
|
||||||
@@ -18,7 +15,7 @@ export default [
|
|||||||
{
|
{
|
||||||
input: `src/runtime/index.ts`,
|
input: `src/runtime/index.ts`,
|
||||||
output: {
|
output: {
|
||||||
file: `./runtime.js`,
|
file: `runtime.js`,
|
||||||
format: 'es'
|
format: 'es'
|
||||||
},
|
},
|
||||||
plugins: [
|
plugins: [
|
||||||
@@ -39,7 +36,7 @@ export default [
|
|||||||
`src/webpack.ts`
|
`src/webpack.ts`
|
||||||
],
|
],
|
||||||
output: {
|
output: {
|
||||||
dir: './dist',
|
dir: 'dist',
|
||||||
format: 'cjs',
|
format: 'cjs',
|
||||||
sourcemap: true
|
sourcemap: true
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -1,2 +1 @@
|
|||||||
// TODO write to this file, instead of webpack.js
|
throw new Error(`As of Sapper 0.18, webpack config must be loaded from sapper/config/webpack.js`);
|
||||||
module.exports = require('./dist/webpack.js');
|
|
||||||
@@ -1,2 +1 @@
|
|||||||
// TODO deprecate this file in favour of sapper/webpack.js
|
throw new Error(`As of Sapper 0.18, webpack config must be loaded from sapper/config/webpack.js`);
|
||||||
module.exports = require('../dist/webpack.js');
|
|
||||||
Reference in New Issue
Block a user